cmMakefile: Remove cacheOnly option from GetDefinitions.
It is now unused.
This commit is contained in:
parent
046aafff12
commit
4c192fb531
|
@ -2497,18 +2497,11 @@ const char* cmMakefile::GetSafeDefinition(const std::string& def) const
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> cmMakefile
|
std::vector<std::string> cmMakefile::GetDefinitions() const
|
||||||
::GetDefinitions(int cacheonly /* = 0 */) const
|
|
||||||
{
|
{
|
||||||
std::vector<std::string> res;
|
std::vector<std::string> res = this->Internal->ClosureKeys();
|
||||||
if ( !cacheonly )
|
std::vector<std::string> cacheKeys = this->GetState()->GetCacheEntryKeys();
|
||||||
{
|
|
||||||
res = this->Internal->ClosureKeys();
|
|
||||||
}
|
|
||||||
std::vector<std::string> cacheKeys =
|
|
||||||
this->GetState()->GetCacheEntryKeys();
|
|
||||||
res.insert(res.end(), cacheKeys.begin(), cacheKeys.end());
|
res.insert(res.end(), cacheKeys.begin(), cacheKeys.end());
|
||||||
|
|
||||||
std::sort(res.begin(), res.end());
|
std::sort(res.begin(), res.end());
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
@ -511,7 +511,7 @@ public:
|
||||||
* cacheonly is specified and is greater than 0, then only cache
|
* cacheonly is specified and is greater than 0, then only cache
|
||||||
* variables will be listed.
|
* variables will be listed.
|
||||||
*/
|
*/
|
||||||
std::vector<std::string> GetDefinitions(int cacheonly=0) const;
|
std::vector<std::string> GetDefinitions() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test a boolean variable to see if it is true or false.
|
* Test a boolean variable to see if it is true or false.
|
||||||
|
|
Loading…
Reference in New Issue