Przeglądaj źródła

Convert: Remove unused overload

Stephen Kelly 9 lat temu
rodzic
commit
9440d5776b
2 zmienionych plików z 0 dodań i 23 usunięć
  1. 0 21
      Source/cmOutputConverter.cxx
  2. 0 2
      Source/cmOutputConverter.h

+ 0 - 21
Source/cmOutputConverter.cxx

@@ -146,27 +146,6 @@ std::string cmOutputConverter::ConvertDirectorySeparatorsForShell(
   return result;
   return result;
 }
 }
 
 
-std::string cmOutputConverter::Convert(RelativeRoot remote,
-                                       const std::string& local,
-                                       OutputFormat output) const
-{
-  // The relative root must have a path (i.e. not FULL or NONE)
-  assert(remote != FULL);
-  assert(remote != NONE);
-
-  const char* remotePath = this->GetRelativeRootPath(remote);
-  assert(remotePath != CM_NULLPTR);
-
-  if (local.empty()) {
-    return this->ConvertToOutputFormat(remotePath, output);
-  }
-
-  std::vector<std::string> components;
-  cmSystemTools::SplitPath(local, components);
-  std::string result = this->ConvertToRelativePath(components, remotePath);
-  return this->ConvertToOutputFormat(result, output);
-}
-
 static bool cmOutputConverterNotAbove(const char* a, const char* b)
 static bool cmOutputConverterNotAbove(const char* a, const char* b)
 {
 {
   return (cmSystemTools::ComparePath(a, b) ||
   return (cmSystemTools::ComparePath(a, b) ||

+ 0 - 2
Source/cmOutputConverter.h

@@ -57,8 +57,6 @@ public:
                                     OutputFormat output) const;
                                     OutputFormat output) const;
   std::string Convert(const std::string& remote, RelativeRoot local,
   std::string Convert(const std::string& remote, RelativeRoot local,
                       OutputFormat output = UNCHANGED) const;
                       OutputFormat output = UNCHANGED) const;
-  std::string Convert(RelativeRoot remote, const std::string& local,
-                      OutputFormat output = UNCHANGED) const;
   std::string ConvertDirectorySeparatorsForShell(
   std::string ConvertDirectorySeparatorsForShell(
     const std::string& source) const;
     const std::string& source) const;