summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-10 20:59:36 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-10 20:59:36 (GMT)
commitafbe0883094afddb7cbaedcb8d89031ef503ed3b (patch)
tree1d8a7b3105ae2ca0b4fa0aff6da561fb973a8c1c /Source/cmMakefile.cxx
parent6097c04c4d5f847dc7de1fb32f1cfd12b405db81 (diff)
downloadCMake-afbe0883094afddb7cbaedcb8d89031ef503ed3b.zip
CMake-afbe0883094afddb7cbaedcb8d89031ef503ed3b.tar.gz
CMake-afbe0883094afddb7cbaedcb8d89031ef503ed3b.tar.bz2
Remove barely-used cmMakefile::AddCacheDefinition
The boolean overload of this method was used only to implement option(). We re-implement option() in terms of the main method and removes the now-unused signature. This removes some duplicate code that had already fallen behind on changes (it was not removing the local definition instead of setting it).
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index ef9a726..6732eec 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1720,23 +1720,6 @@ void cmMakefile::AddDefinition(const char* name, bool value)
#endif
}
-
-void cmMakefile::AddCacheDefinition(const char* name,
- bool value,
- const char* doc)
-{
- bool val = value;
- cmCacheManager::CacheIterator it =
- this->GetCacheManager()->GetCacheIterator(name);
- if(!it.IsAtEnd() && (it.GetType() == cmCacheManager::UNINITIALIZED) &&
- it.Initialized())
- {
- val = it.GetValueAsBool();
- }
- this->GetCacheManager()->AddCacheEntry(name, val, doc);
- this->AddDefinition(name, val);
-}
-
void cmMakefile::RemoveDefinition(const char* name)
{
this->Internal->VarStack.top().Set(name, 0);