diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index a7777d9a7..9dac27b1c 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -28,12 +28,6 @@ cmCacheManager::cmCacheManager(cmake* cm) this->CMakeInstance = cm; } -bool cmCacheManager::LoadCache(const std::string& path) -{ - std::set emptySet; - return this->LoadCache(path, true, emptySet, emptySet); -} - static bool ParseEntryWithoutType(const std::string& entry, std::string& var, std::string& value) diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h index b779ba37b..76533b52d 100644 --- a/Source/cmCacheManager.h +++ b/Source/cmCacheManager.h @@ -99,7 +99,6 @@ public: } ///! Load a cache for given makefile. Loads from path/CMakeCache.txt. - bool LoadCache(const std::string& path); bool LoadCache(const std::string& path, bool internal, std::set& excludes, std::set& includes); diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 8016e4119..ad5f6b784 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1752,7 +1752,8 @@ int cmake::LoadCache() bool cmake::LoadCache(const std::string& path) { - return this->CacheManager->LoadCache(path); + std::set emptySet; + return this->LoadCache(path, true, emptySet, emptySet); } bool cmake::LoadCache(const std::string& path, bool internal,