diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-25 14:29:54 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-28 22:18:13 (GMT) |
commit | 23370344427ce8da470ff6266a675150457fdda2 (patch) | |
tree | 4cefc491f0866015557d24ae78d0060ae1b5df1c /Source/cmDefinitions.cxx | |
parent | b9f4dd39bb3878ef1fbb0b5b6bc23bab5425584d (diff) | |
download | CMake-23370344427ce8da470ff6266a675150457fdda2.zip CMake-23370344427ce8da470ff6266a675150457fdda2.tar.gz CMake-23370344427ce8da470ff6266a675150457fdda2.tar.bz2 |
cmDefinitions: Remove unused Set return value.
Diffstat (limited to 'Source/cmDefinitions.cxx')
-rw-r--r-- | Source/cmDefinitions.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmDefinitions.cxx b/Source/cmDefinitions.cxx index 6a27659..d5f6ebc 100644 --- a/Source/cmDefinitions.cxx +++ b/Source/cmDefinitions.cxx @@ -45,13 +45,12 @@ cmDefinitions::SetInternal(const std::string& key, Def const& def) if(this->Up || def.Exists) { // In lower scopes we store keys, defined or not. - return (this->Map[key] = def); + this->Map[key] = def; } else { // In the top-most scope we need not store undefined keys. this->Map.erase(key); - return this->NoDef; } } @@ -63,10 +62,9 @@ const char* cmDefinitions::Get(const std::string& key) } //---------------------------------------------------------------------------- -const char* cmDefinitions::Set(const std::string& key, const char* value) +void cmDefinitions::Set(const std::string& key, const char* value) { - Def const& def = this->SetInternal(key, Def(value)); - return def.Exists? def.c_str() : 0; + this->SetInternal(key, Def(value)); } //---------------------------------------------------------------------------- |