diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-17 13:20:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-19 20:36:52 (GMT) |
commit | f58c3774d15f16ea287ca52fcbd04c17f0a5612d (patch) | |
tree | 55d033e423d29e9cb898423a59010c15fa1d11ee /Source/cmDefinitions.cxx | |
parent | ea7b962be2f157f60f143725948e56b2f9f07042 (diff) | |
download | CMake-f58c3774d15f16ea287ca52fcbd04c17f0a5612d.zip CMake-f58c3774d15f16ea287ca52fcbd04c17f0a5612d.tar.gz CMake-f58c3774d15f16ea287ca52fcbd04c17f0a5612d.tar.bz2 |
cmMakefile: Mark definitions explicitly erased, even at top level.
Presumably the intention here is to attempt to optimize memory by not
storing what is not needed. However, all keys need to be tracked
anyway to implement initialization tracking, and this special case
gets in the way of simplifying the implementation of that.
This doesn't change any observable effects because values set
to 0 are considered not to exist by the cmDefinitions API.
Diffstat (limited to 'Source/cmDefinitions.cxx')
-rw-r--r-- | Source/cmDefinitions.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/cmDefinitions.cxx b/Source/cmDefinitions.cxx index d7b6279..97a16ea 100644 --- a/Source/cmDefinitions.cxx +++ b/Source/cmDefinitions.cxx @@ -61,11 +61,6 @@ void cmDefinitions::Set(const std::string& key, const char* value) this->Map[key] = def; } -void cmDefinitions::Erase(const std::string& key) -{ - this->Map.erase(key); -} - //---------------------------------------------------------------------------- std::vector<std::string> cmDefinitions::LocalKeys() const { |