Pārlūkot izejas kodu

cmGlobalGenerator: Remove unused FindLocalGenerator method

This method has not been used since commit v3.4.0-rc1~234^2~1
(cmGlobalGenerator: Port Find API to cmMakefile, 2015-08-02).
Brad King 7 gadi atpakaļ
vecāks
revīzija
8a63b23d16
2 mainītis faili ar 0 papildinājumiem un 15 dzēšanām
  1. 0 13
      Source/cmGlobalGenerator.cxx
  2. 0 2
      Source/cmGlobalGenerator.h

+ 0 - 13
Source/cmGlobalGenerator.cxx

@@ -2130,19 +2130,6 @@ cmMakefile* cmGlobalGenerator::FindMakefile(const std::string& start_dir) const
   return nullptr;
   return nullptr;
 }
 }
 
 
-///! Find a local generator by its startdirectory
-cmLocalGenerator* cmGlobalGenerator::FindLocalGenerator(
-  const std::string& start_dir) const
-{
-  for (cmLocalGenerator* lg : this->LocalGenerators) {
-    std::string sd = lg->GetCurrentSourceDirectory();
-    if (sd == start_dir) {
-      return lg;
-    }
-  }
-  return nullptr;
-}
-
 void cmGlobalGenerator::AddAlias(const std::string& name,
 void cmGlobalGenerator::AddAlias(const std::string& name,
                                  std::string const& tgtName)
                                  std::string const& tgtName)
 {
 {

+ 0 - 2
Source/cmGlobalGenerator.h

@@ -284,8 +284,6 @@ public:
   bool NameResolvesToFramework(const std::string& libname) const;
   bool NameResolvesToFramework(const std::string& libname) const;
 
 
   cmMakefile* FindMakefile(const std::string& start_dir) const;
   cmMakefile* FindMakefile(const std::string& start_dir) const;
-  ///! Find a local generator by its startdirectory
-  cmLocalGenerator* FindLocalGenerator(const std::string& start_dir) const;
 
 
   /** Append the subdirectory for the given configuration.  If anything is
   /** Append the subdirectory for the given configuration.  If anything is
       appended the given prefix and suffix will be appended around it, which
       appended the given prefix and suffix will be appended around it, which