summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-23 16:21:21 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-23 16:28:01 (GMT)
commitd8a571483950527c7f44b813a3b73eb1dbbc5435 (patch)
tree612dcec77ec418192e663cbc148d1c90ebebdfcb
parent29c1385675df37146465e820d303de3cdd703e8c (diff)
downloadCMake-d8a571483950527c7f44b813a3b73eb1dbbc5435.zip
CMake-d8a571483950527c7f44b813a3b73eb1dbbc5435.tar.gz
CMake-d8a571483950527c7f44b813a3b73eb1dbbc5435.tar.bz2
cmake: Remove unused cmPolicies member.
heaptrack showed a 1 byte allocation with the backtrace pointing here, as is the case since commit v3.3.0-rc1~112^2~5 (cmPolicies: Remove unused cmPolicy class., 2015-05-03)
-rw-r--r--Source/cmake.cxx2
-rw-r--r--Source/cmake.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 62b3f83..1f5c4d4 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -133,7 +133,6 @@ cmake::cmake()
this->ClearBuildSystem = false;
this->FileComparison = new cmFileTimeComparison;
- this->Policies = new cmPolicies();
this->State = new cmState(this);
this->CurrentSnapshot = this->State->CreateBaseSnapshot();
@@ -171,7 +170,6 @@ cmake::cmake()
cmake::~cmake()
{
delete this->CacheManager;
- delete this->Policies;
delete this->State;
if (this->GlobalGenerator)
{
diff --git a/Source/cmake.h b/Source/cmake.h
index 31f55ac..8ac8897 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -27,7 +27,6 @@ class cmVariableWatch;
class cmFileTimeComparison;
class cmExternalMakefileProjectGenerator;
class cmDocumentationSection;
-class cmPolicies;
class cmTarget;
class cmGeneratedFileStream;
@@ -340,7 +339,6 @@ protected:
void AddExtraGenerator(const std::string& name,
CreateExtraGeneratorFunctionType newFunction);
- cmPolicies *Policies;
cmGlobalGenerator *GlobalGenerator;
cmCacheManager *CacheManager;
std::map<std::string, WarningLevel> WarningLevels;