summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-07-11 12:43:48 (GMT)
committerBrad King <brad.king@kitware.com>2017-07-11 13:11:19 (GMT)
commit1ae1b880a8e3297daf7f2c02ff2cb07e51bbe4a1 (patch)
tree1509fa4a41cc3ce74bccdb1faad90114836f8d61 /Source
parentcca8454ee5006e622c551630011f63f87a5c9748 (diff)
downloadCMake-1ae1b880a8e3297daf7f2c02ff2cb07e51bbe4a1.zip
CMake-1ae1b880a8e3297daf7f2c02ff2cb07e51bbe4a1.tar.gz
CMake-1ae1b880a8e3297daf7f2c02ff2cb07e51bbe4a1.tar.bz2
cmFindCommon: Drop unused FilterPaths method
The method has not been used since commit v3.2.0-rc1~400^2~1 (Encapsulate search path manipulation functions into a seperate class, 2014-10-15).
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFindCommon.cxx12
-rw-r--r--Source/cmFindCommon.h5
2 files changed, 0 insertions, 17 deletions
diff --git a/Source/cmFindCommon.cxx b/Source/cmFindCommon.cxx
index 8c5686e..fd0e317 100644
--- a/Source/cmFindCommon.cxx
+++ b/Source/cmFindCommon.cxx
@@ -231,18 +231,6 @@ void cmFindCommon::RerootPaths(std::vector<std::string>& paths)
}
}
-void cmFindCommon::FilterPaths(const std::vector<std::string>& inPaths,
- const std::set<std::string>& ignore,
- std::vector<std::string>& outPaths)
-{
- for (std::vector<std::string>::const_iterator i = inPaths.begin();
- i != inPaths.end(); ++i) {
- if (ignore.count(*i) == 0) {
- outPaths.push_back(*i);
- }
- }
-}
-
void cmFindCommon::GetIgnoredPaths(std::vector<std::string>& ignore)
{
// null-terminated list of paths.
diff --git a/Source/cmFindCommon.h b/Source/cmFindCommon.h
index 2eed47b..7954267 100644
--- a/Source/cmFindCommon.h
+++ b/Source/cmFindCommon.h
@@ -81,11 +81,6 @@ protected:
void GetIgnoredPaths(std::vector<std::string>& ignore);
void GetIgnoredPaths(std::set<std::string>& ignore);
- /** Remove paths in the ignore set from the supplied vector. */
- void FilterPaths(const std::vector<std::string>& inPaths,
- const std::set<std::string>& ignore,
- std::vector<std::string>& outPaths);
-
/** Compute final search path list (reroot + trailing slash). */
void ComputeFinalPaths();