summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-09-16 17:50:39 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-16 17:50:39 (GMT)
commita8e97f8a08f143ebc255c05a50f20b783a0fffa9 (patch)
treecdc9543523f9d72531bd154cfb8feb74966c3531 /Source/cmMakefile.cxx
parent59463ef1a33a22113e1c577c450d7b2c70916bbc (diff)
downloadCMake-a8e97f8a08f143ebc255c05a50f20b783a0fffa9.zip
CMake-a8e97f8a08f143ebc255c05a50f20b783a0fffa9.tar.gz
CMake-a8e97f8a08f143ebc255c05a50f20b783a0fffa9.tar.bz2
Remove VarRemoved code since it's been superceded
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index df871ec..a7f86ae 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -45,7 +45,6 @@ public:
std::stack<cmDefinitions, std::list<cmDefinitions> > VarStack;
std::stack<std::set<cmStdString> > VarInitStack;
std::stack<std::set<cmStdString> > VarUsageStack;
- std::set<cmStdString> 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