cmMakefile: Remove unused CacheManager accessor.

Remove unneeded friend declarations from cmCacheManager.
This commit is contained in:
Stephen Kelly 2015-04-07 22:36:13 +02:00 committed by Brad King
parent ff7169a03c
commit f71fdf0ec8
3 changed files with 0 additions and 9 deletions

View File

@ -248,10 +248,8 @@ private:
CacheEntryMap Cache;
// Only cmake and cmMakefile should be able to add cache values
// the commands should never use the cmCacheManager directly
friend class cmMakefile; // allow access to add cache values
friend class cmState; // allow access to add cache values
friend class cmake; // allow access to add cache values
friend class cmMarkAsAdvancedCommand; // allow access to add cache values
};
#endif

View File

@ -3735,11 +3735,6 @@ void cmMakefile::GetListOfMacros(std::string& macros) const
macros = cmJoin(this->MacrosList, ";");
}
cmCacheManager *cmMakefile::GetCacheManager() const
{
return this->GetCMakeInstance()->GetCacheManager();
}
cmState *cmMakefile::GetState() const
{
return this->GetCMakeInstance()->GetState();

View File

@ -12,7 +12,6 @@
#ifndef cmMakefile_h
#define cmMakefile_h
#include "cmCacheManager.h"
#include "cmExecutionStatus.h"
#include "cmListFileCache.h"
#include "cmPolicies.h"
@ -765,7 +764,6 @@ public:
///enabled.
void EnableLanguage(std::vector<std::string>const& languages, bool optional);
cmCacheManager *GetCacheManager() const;
cmState *GetState() const;
/**