cmCacheManager: Remove unused method
This commit is contained in:
parent
64556e3dfa
commit
c37cf7fa9e
|
@ -896,21 +896,3 @@ bool cmCacheManager::CacheIterator::PropertyExists(
|
||||||
{
|
{
|
||||||
return this->GetProperty(prop)? true:false;
|
return this->GetProperty(prop)? true:false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
bool cmCacheManager::NeedCacheCompatibility(int major, int minor)
|
|
||||||
{
|
|
||||||
// Compatibility is not needed if the cache version is zero because
|
|
||||||
// the cache was created or modified by the user.
|
|
||||||
if(this->CacheMajorVersion == 0)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compatibility is needed if the cache version is equal to or lower
|
|
||||||
// than the given version.
|
|
||||||
cmIML_INT_uint64_t actual_compat =
|
|
||||||
CMake_VERSION_ENCODE(this->CacheMajorVersion, this->CacheMinorVersion, 0);
|
|
||||||
return (actual_compat &&
|
|
||||||
actual_compat <= CMake_VERSION_ENCODE(major, minor, 0));
|
|
||||||
}
|
|
||||||
|
|
|
@ -144,7 +144,6 @@ public:
|
||||||
{ return this->CacheMajorVersion; }
|
{ return this->CacheMajorVersion; }
|
||||||
unsigned int GetCacheMinorVersion() const
|
unsigned int GetCacheMinorVersion() const
|
||||||
{ return this->CacheMinorVersion; }
|
{ return this->CacheMinorVersion; }
|
||||||
bool NeedCacheCompatibility(int major, int minor);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
///! Add an entry into the cache
|
///! Add an entry into the cache
|
||||||
|
|
|
@ -184,11 +184,6 @@ unsigned int cmMakefile::GetCacheMinorVersion() const
|
||||||
return this->GetCacheManager()->GetCacheMinorVersion();
|
return this->GetCacheManager()->GetCacheMinorVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmMakefile::NeedCacheCompatibility(int major, int minor) const
|
|
||||||
{
|
|
||||||
return this->GetCacheManager()->NeedCacheCompatibility(major, minor);
|
|
||||||
}
|
|
||||||
|
|
||||||
cmMakefile::~cmMakefile()
|
cmMakefile::~cmMakefile()
|
||||||
{
|
{
|
||||||
cmDeleteAll(this->InstallGenerators);
|
cmDeleteAll(this->InstallGenerators);
|
||||||
|
|
|
@ -78,9 +78,6 @@ public:
|
||||||
bool VariableInitialized(const std::string& ) const;
|
bool VariableInitialized(const std::string& ) const;
|
||||||
/* return true if a variable has been used */
|
/* return true if a variable has been used */
|
||||||
bool VariableUsed(const std::string& ) const;
|
bool VariableUsed(const std::string& ) const;
|
||||||
/** Return whether compatibility features needed for a version of
|
|
||||||
the cache or lower should be enabled. */
|
|
||||||
bool NeedCacheCompatibility(int major, int minor) const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct an empty makefile.
|
* Construct an empty makefile.
|
||||||
|
|
Loading…
Reference in New Issue