From 640fc5b54a8e7f9e000d5a661f0656a8701639b5 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 7 Jul 2015 23:40:48 +0200 Subject: cmMakefile: Remove unused ListFileStack. --- Source/cmMakefile.cxx | 5 ----- Source/cmMakefile.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index f8ac52e..2216264 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -455,7 +455,6 @@ cmMakefile::IncludeScope::IncludeScope(cmMakefile* mf, // The included file cannot pop our policy scope. this->Makefile->PushPolicyBarrier(); - this->Makefile->ListFileStack.push_back(filenametoread); this->Makefile->PushFunctionBlockerBarrier(); this->Makefile->StateSnapshot = @@ -498,7 +497,6 @@ cmMakefile::IncludeScope::~IncludeScope() this->EnforceCMP0011(); } } - this->Makefile->ListFileStack.pop_back(); } //---------------------------------------------------------------------------- @@ -593,7 +591,6 @@ public: ListFileScope(cmMakefile* mf, std::string const& filenametoread) : Makefile(mf), ReportError(true) { - this->Makefile->ListFileStack.push_back(filenametoread); this->Makefile->PushPolicyBarrier(); long line = 0; @@ -618,7 +615,6 @@ public: this->Makefile->PopFunctionBlockerBarrier(this->ReportError); this->Makefile->PopPolicyBarrier(this->ReportError); - this->Makefile->ListFileStack.pop_back(); } void Quiet() { this->ReportError = false; } @@ -1707,7 +1703,6 @@ public: this->Makefile->StateSnapshot.GetCurrentSourceDirectory(); currentStart += "/CMakeLists.txt"; this->Makefile->StateSnapshot.SetListFile(currentStart); - this->Makefile->ListFileStack.push_back(currentStart); this->Makefile->PushPolicyBarrier(); this->Makefile->PushFunctionBlockerBarrier(); diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 82a2279..415b5fe 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -934,9 +934,6 @@ private: cmPropertyMap Properties; - // stack of list files being read - std::vector ListFileStack; - std::vector ContextStack; std::vector ExecutionStatusStack; friend class cmMakefileCall; -- cgit v0.12