浏览代码

cmLocalGenerator: Remove unused MaybeRelativeToCurSrcDir method

With the recent update to `GetObjectFileNameWithoutTarget`, we no longer
have any call sites for `MaybeRelativeToCurSrcDir`.  It does not make
sense for the generator to produce paths relative to the source tree in
general, so remove the method.
Brad King 4 年之前
父节点
当前提交
24bfdbcffb
共有 2 个文件被更改,包括 0 次插入7 次删除
  1. 0 6
      Source/cmLocalGenerator.cxx
  2. 0 1
      Source/cmLocalGenerator.h

+ 0 - 6
Source/cmLocalGenerator.cxx

@@ -3698,12 +3698,6 @@ std::string cmLocalGenerator::MaybeRelativeToCurBinDir(
   return this->MaybeRelativeTo(this->GetCurrentBinaryDirectory(), path);
   return this->MaybeRelativeTo(this->GetCurrentBinaryDirectory(), path);
 }
 }
 
 
-std::string cmLocalGenerator::MaybeRelativeToCurSrcDir(
-  std::string const& path) const
-{
-  return this->MaybeRelativeTo(this->GetCurrentSourceDirectory(), path);
-}
-
 std::string cmLocalGenerator::GetTargetDirectory(
 std::string cmLocalGenerator::GetTargetDirectory(
   const cmGeneratorTarget* /*unused*/) const
   const cmGeneratorTarget* /*unused*/) const
 {
 {

+ 0 - 1
Source/cmLocalGenerator.h

@@ -471,7 +471,6 @@ public:
    */
    */
   std::string MaybeRelativeToTopBinDir(std::string const& path) const;
   std::string MaybeRelativeToTopBinDir(std::string const& path) const;
   std::string MaybeRelativeToCurBinDir(std::string const& path) const;
   std::string MaybeRelativeToCurBinDir(std::string const& path) const;
-  std::string MaybeRelativeToCurSrcDir(std::string const& path) const;
 
 
   /**
   /**
    * Generate a macOS application bundle Info.plist file.
    * Generate a macOS application bundle Info.plist file.