mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
cmMakefile: Remove cache version accessors.
They are only used by legacy code. Inline them there to simplify cmMakefile.
This commit is contained in:
@@ -51,12 +51,14 @@ void CCONV cmSetError(void *info, const char *err)
|
||||
unsigned int CCONV cmGetCacheMajorVersion(void *arg)
|
||||
{
|
||||
cmMakefile *mf = static_cast<cmMakefile *>(arg);
|
||||
return mf->GetCacheMajorVersion();
|
||||
cmCacheManager *manager = mf->GetCMakeInstance()->GetCacheManager();
|
||||
return manager->GetCacheMajorVersion();
|
||||
}
|
||||
unsigned int CCONV cmGetCacheMinorVersion(void *arg)
|
||||
{
|
||||
cmMakefile *mf = static_cast<cmMakefile *>(arg);
|
||||
return mf->GetCacheMinorVersion();
|
||||
cmCacheManager *manager = mf->GetCMakeInstance()->GetCacheManager();
|
||||
return manager->GetCacheMinorVersion();
|
||||
}
|
||||
|
||||
unsigned int CCONV cmGetMajorVersion(void *)
|
||||
|
||||
Reference in New Issue
Block a user