summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-11 14:04:10 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-11 14:04:10 (GMT)
commit74b79d3b3996c1aed1d11ddfc06278f7f880454d (patch)
tree1096254426a8da346dff22462a6582402b99e321 /Source/cmCacheManager.cxx
parent7a409fd573721ae4346bee682d80fb285ab98497 (diff)
downloadCMake-74b79d3b3996c1aed1d11ddfc06278f7f880454d.zip
CMake-74b79d3b3996c1aed1d11ddfc06278f7f880454d.tar.gz
CMake-74b79d3b3996c1aed1d11ddfc06278f7f880454d.tar.bz2
Remove barely-used cmCacheManager::AddCacheEntry
The commit "Remove barely-used cmMakefile::AddCacheDefinition" removed all but one use of the cmCacheManager method 'bool' overload. This commit removes the other use and the entire method, thus reducing code duplication.
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index 4c57c5f..6af748f 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -766,19 +766,6 @@ void cmCacheManager::AddCacheEntry(const char* key,
this->Cache[key] = e;
}
-void cmCacheManager::AddCacheEntry(const char* key, bool v,
- const char* helpString)
-{
- if(v)
- {
- this->AddCacheEntry(key, "ON", helpString, cmCacheManager::BOOL);
- }
- else
- {
- this->AddCacheEntry(key, "OFF", helpString, cmCacheManager::BOOL);
- }
-}
-
bool cmCacheManager::CacheIterator::IsAtEnd() const
{
return this->Position == this->Container.Cache.end();