diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-03-12 14:23:12 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-04-29 16:00:05 -0400 |
commit | f718b30a95e07d72a361d55b7ba495eda5d79680 (patch) | |
tree | 5f06d51f999483a1e111fa2969d7a0d125356b55 /Source/cmStringCommand.h | |
parent | bb1c41a085c6eb9296bf701ea7633f715a06f6e1 (diff) | |
download | cmake-f718b30a95e07d72a361d55b7ba495eda5d79680.tar.gz |
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.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h index 51069e709e..8292e643d4 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); |