From 1ae1b880a8e3297daf7f2c02ff2cb07e51bbe4a1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 11 Jul 2017 08:43:48 -0400 Subject: 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). --- Source/cmFindCommon.cxx | 12 ------------ Source/cmFindCommon.h | 5 ----- 2 files changed, 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& paths) } } -void cmFindCommon::FilterPaths(const std::vector& inPaths, - const std::set& ignore, - std::vector& outPaths) -{ - for (std::vector::const_iterator i = inPaths.begin(); - i != inPaths.end(); ++i) { - if (ignore.count(*i) == 0) { - outPaths.push_back(*i); - } - } -} - void cmFindCommon::GetIgnoredPaths(std::vector& 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& ignore); void GetIgnoredPaths(std::set& ignore); - /** Remove paths in the ignore set from the supplied vector. */ - void FilterPaths(const std::vector& inPaths, - const std::set& ignore, - std::vector& outPaths); - /** Compute final search path list (reroot + trailing slash). */ void ComputeFinalPaths(); -- cgit v0.12