Commit f71fdf0e authored by Stephen Kelly's avatar Stephen Kelly Committed by Brad King
Browse files

cmMakefile: Remove unused CacheManager accessor.

Remove unneeded friend declarations from cmCacheManager.
parent ff7169a0
...@@ -248,10 +248,8 @@ private: ...@@ -248,10 +248,8 @@ private:
CacheEntryMap Cache; CacheEntryMap Cache;
// Only cmake and cmMakefile should be able to add cache values // Only cmake and cmMakefile should be able to add cache values
// the commands should never use the cmCacheManager directly // 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 cmState; // allow access to add cache values
friend class cmake; // 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 #endif
...@@ -3735,11 +3735,6 @@ void cmMakefile::GetListOfMacros(std::string& macros) const ...@@ -3735,11 +3735,6 @@ void cmMakefile::GetListOfMacros(std::string& macros) const
macros = cmJoin(this->MacrosList, ";"); macros = cmJoin(this->MacrosList, ";");
} }
cmCacheManager *cmMakefile::GetCacheManager() const
{
return this->GetCMakeInstance()->GetCacheManager();
}
cmState *cmMakefile::GetState() const cmState *cmMakefile::GetState() const
{ {
return this->GetCMakeInstance()->GetState(); return this->GetCMakeInstance()->GetState();
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#ifndef cmMakefile_h #ifndef cmMakefile_h
#define cmMakefile_h #define cmMakefile_h
#include "cmCacheManager.h"
#include "cmExecutionStatus.h" #include "cmExecutionStatus.h"
#include "cmListFileCache.h" #include "cmListFileCache.h"
#include "cmPolicies.h" #include "cmPolicies.h"
...@@ -765,7 +764,6 @@ public: ...@@ -765,7 +764,6 @@ public:
///enabled. ///enabled.
void EnableLanguage(std::vector<std::string>const& languages, bool optional); void EnableLanguage(std::vector<std::string>const& languages, bool optional);
cmCacheManager *GetCacheManager() const;
cmState *GetState() const; cmState *GetState() const;
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment