浏览代码

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).
Brad King 8 年之前
父节点
当前提交
1ae1b880a8
共有 2 个文件被更改,包括 0 次插入17 次删除
  1. 0 12
      Source/cmFindCommon.cxx
  2. 0 5
      Source/cmFindCommon.h

+ 0 - 12
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)
 void cmFindCommon::GetIgnoredPaths(std::vector<std::string>& ignore)
 {
 {
   // null-terminated list of paths.
   // null-terminated list of paths.

+ 0 - 5
Source/cmFindCommon.h

@@ -81,11 +81,6 @@ protected:
   void GetIgnoredPaths(std::vector<std::string>& ignore);
   void GetIgnoredPaths(std::vector<std::string>& ignore);
   void GetIgnoredPaths(std::set<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).  */
   /** Compute final search path list (reroot + trailing slash).  */
   void ComputeFinalPaths();
   void ComputeFinalPaths();