summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-05 18:57:10 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-05 18:57:10 (GMT)
commit83f39ba41b2c8969db2b44761d5fed363dc170b5 (patch)
treeb82376b65640b4b595ed559c66e181317d00d351 /Source/cmake.cxx
parentdcd1c5cd8ad4762c0360e6a15d5fa9d493d7c875 (diff)
downloadCMake-83f39ba41b2c8969db2b44761d5fed363dc170b5.zip
CMake-83f39ba41b2c8969db2b44761d5fed363dc170b5.tar.gz
CMake-83f39ba41b2c8969db2b44761d5fed363dc170b5.tar.bz2
STYLE: Remove unused cmake::CacheVersionMatches
This remove the method completely since nothing uses it.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 4070755..da69073 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2174,26 +2174,6 @@ int cmake::ActualConfigure()
return 0;
}
-bool cmake::CacheVersionMatches()
-{
- const char* majv =
- this->CacheManager->GetCacheValue("CMAKE_CACHE_MAJOR_VERSION");
- const char* minv =
- this->CacheManager->GetCacheValue("CMAKE_CACHE_MINOR_VERSION");
- const char* relv =
- this->CacheManager->GetCacheValue("CMAKE_CACHE_RELEASE_VERSION");
- bool cacheSameCMake = false;
- if(majv &&
- atoi(majv) == static_cast<int>(cmVersion::GetMajorVersion())
- && minv &&
- atoi(minv) == static_cast<int>(cmVersion::GetMinorVersion())
- && relv && (strcmp(relv, cmVersion::GetReleaseVersion().c_str()) == 0))
- {
- cacheSameCMake = true;
- }
- return cacheSameCMake;
-}
-
void cmake::PreLoadCMakeFiles()
{
std::string pre_load = this->GetHomeDirectory();