mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
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).
This commit is contained in:
1 parent
cca8454ee5
commit
1ae1b880a8
2 files changed
-17
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user