From 22021f07f80163979e8dedfcefccee53f4693fae Mon Sep 17 00:00:00 2001 From: David Cole Date: Wed, 22 Feb 2012 07:25:43 -0500 Subject: [PATCH] Remove cmMakefile::GetIncludeDirectories After making the changes to use the new target level INCLUDE_DIRECTORIES property, there are no more callers of this method. --- Source/cmMakefile.cxx | 24 ------------------------ Source/cmMakefile.h | 5 ----- 2 files changed, 29 deletions(-) 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. */