From a8e97f8a08f143ebc255c05a50f20b783a0fffa9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 16 Sep 2010 13:50:39 -0400 Subject: [PATCH] Remove VarRemoved code since it's been superceded --- Source/cmMakefile.cxx | 11 ----------- Source/cmMakefile.h | 4 ---- 2 files changed, 15 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index df871ec41..a7f86aead 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -45,7 +45,6 @@ public: std::stack > VarStack; std::stack > VarInitStack; std::stack > VarUsageStack; - std::set VarRemoved; }; // default is not to be building executables @@ -1762,15 +1761,6 @@ bool cmMakefile::VariableUsed(const char* var) const return false; } -bool cmMakefile::VariableCleared(const char* var) const -{ - if(this->Internal->VarRemoved.find(var) != this->Internal->VarRemoved.end()) - { - return true; - } - return false; -} - void cmMakefile::CheckForUnused(const char* reason, const char* name) const { if (this->WarnUnused && !this->VariableUsed(name)) @@ -1793,7 +1783,6 @@ void cmMakefile::CheckForUnused(const char* reason, const char* name) const void cmMakefile::RemoveDefinition(const char* name) { this->Internal->VarStack.top().Set(name, 0); - this->Internal->VarRemoved.insert(name); this->Internal->VarInitStack.top().insert(name); this->CheckForUnused("unsetting", name); #ifdef CMAKE_BUILD_WITH_CMAKE diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 782690318..9d9606d28 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -67,10 +67,6 @@ public: bool VariableInitialized(const char* ) const; /* return true if a variable has been used */ bool VariableUsed(const char* ) const; - /* return true if a variable has been set with - set(foo ) - */ - bool VariableCleared(const char* ) const; /** Return whether compatibility features needed for a version of the cache or lower should be enabled. */ bool NeedCacheCompatibility(int major, int minor);