Inline unary LoadCache.

This commit is contained in:
Stephen Kelly 2015-10-10 15:13:08 +02:00
parent bec3487fa9
commit a02e53eb94
3 changed files with 2 additions and 8 deletions

View File

@ -28,12 +28,6 @@ cmCacheManager::cmCacheManager(cmake* cm)
this->CMakeInstance = cm;
}
bool cmCacheManager::LoadCache(const std::string& path)
{
std::set<std::string> emptySet;
return this->LoadCache(path, true, emptySet, emptySet);
}
static bool ParseEntryWithoutType(const std::string& entry,
std::string& var,
std::string& value)

View File

@ -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<std::string>& excludes,
std::set<std::string>& includes);

View File

@ -1752,7 +1752,8 @@ int cmake::LoadCache()
bool cmake::LoadCache(const std::string& path)
{
return this->CacheManager->LoadCache(path);
std::set<std::string> emptySet;
return this->LoadCache(path, true, emptySet, emptySet);
}
bool cmake::LoadCache(const std::string& path, bool internal,