Remove cmMakefile::GetIncludeDirectories

After making the changes to use the new target level INCLUDE_DIRECTORIES
property, there are no more callers of this method.
This commit is contained in:
David Cole 2012-02-22 07:25:43 -05:00
parent 9106b564ae
commit 22021f07f8
2 changed files with 0 additions and 29 deletions

View File

@ -1659,30 +1659,6 @@ void cmMakefile::AddIncludeDirectory(const char* inc, bool before)
}
}
//----------------------------------------------------------------------------
std::vector<std::string> cmMakefile::GetIncludeDirectories()
{
std::vector<std::string> includes;
const char *val = this->GetProperty("INCLUDE_DIRECTORIES");
if(val)
{
cmSystemTools::ExpandListArgument(val, includes);
}
std::set<std::string> uniqueIncludes;
std::vector<std::string> orderedAndUniqueIncludes;
for(std::vector<std::string>::const_iterator
li = includes.begin(); li != includes.end(); ++li)
{
if(uniqueIncludes.insert(*li).second)
{
orderedAndUniqueIncludes.push_back(*li);
}
}
return orderedAndUniqueIncludes;
}
//----------------------------------------------------------------------------
void cmMakefile::AddSystemIncludeDirectory(const char* dir)
{

View File

@ -521,11 +521,6 @@ public:
returned may be imported or built within the project. */
cmTarget* FindTargetToUse(const char* name);
/**
* Get a list of include directories in the build.
*/
std::vector<std::string> GetIncludeDirectories();
/**
* Mark include directories as system directories.
*/