From 24bfdbcffba42fc0aac6ef3b575bd50a180d26ea Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 14 May 2021 12:43:35 -0400 Subject: 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. --- Source/cmLocalGenerator.cxx | 6 ------ Source/cmLocalGenerator.h | 1 - 2 files changed, 7 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 79ad46f..4a35909 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -3698,12 +3698,6 @@ std::string cmLocalGenerator::MaybeRelativeToCurBinDir( 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( const cmGeneratorTarget* /*unused*/) const { diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index 5ebf70c..1f8970f 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -471,7 +471,6 @@ public: */ std::string MaybeRelativeToTopBinDir(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. -- cgit v0.12