diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 62904121d..818bb1b81 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1659,30 +1659,6 @@ void cmMakefile::AddIncludeDirectory(const char* inc, bool before) } } -//---------------------------------------------------------------------------- -std::vector cmMakefile::GetIncludeDirectories() -{ - std::vector includes; - const char *val = this->GetProperty("INCLUDE_DIRECTORIES"); - if(val) - { - cmSystemTools::ExpandListArgument(val, includes); - } - - std::set uniqueIncludes; - std::vector orderedAndUniqueIncludes; - for(std::vector::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) { diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 5e5310f91..c2939fb81 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -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 GetIncludeDirectories(); - /** * Mark include directories as system directories. */