summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-03-12 18:23:12 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-04-29 20:00:05 (GMT)
commitf718b30a95e07d72a361d55b7ba495eda5d79680 (patch)
tree5f06d51f999483a1e111fa2969d7a0d125356b55 /Source/cmStringCommand.h
parentbb1c41a085c6eb9296bf701ea7633f715a06f6e1 (diff)
downloadCMake-f718b30a95e07d72a361d55b7ba495eda5d79680.zip
CMake-f718b30a95e07d72a361d55b7ba495eda5d79680.tar.gz
CMake-f718b30a95e07d72a361d55b7ba495eda5d79680.tar.bz2
ClearMatches: Only clear matches which were actually set
ClearMatches was clearing many variables which were never set in the first place. Instead, store how many matches were made last time and only clear those. It is moved to the cmMakefile class since it is a common utility used by multiple commands.
Diffstat (limited to 'Source/cmStringCommand.h')
-rw-r--r--Source/cmStringCommand.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index 51069e7..8292e64 100644
--- a/Source/cmStringCommand.h
+++ b/Source/cmStringCommand.h
@@ -53,8 +53,6 @@ public:
virtual std::string GetName() const { return "string";}
cmTypeMacro(cmStringCommand, cmCommand);
- static void ClearMatches(cmMakefile* mf);
- static void StoreMatches(cmMakefile* mf, cmsys::RegularExpression& re);
protected:
bool HandleConfigureCommand(std::vector<std::string> const& args);
bool HandleAsciiCommand(std::vector<std::string> const& args);