diff options
author | Brad King <brad.king@kitware.com> | 2021-05-14 16:43:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-17 14:03:43 (GMT) |
commit | 24bfdbcffba42fc0aac6ef3b575bd50a180d26ea (patch) | |
tree | d38d1f00b9a89c4b532eef9d6eb4b81b7adddd13 /Source/cmLocalGenerator.cxx | |
parent | d6fe1bdb6d79516a68a88d5f5a11d2531dae7074 (diff) | |
download | CMake-24bfdbcffba42fc0aac6ef3b575bd50a180d26ea.zip CMake-24bfdbcffba42fc0aac6ef3b575bd50a180d26ea.tar.gz CMake-24bfdbcffba42fc0aac6ef3b575bd50a180d26ea.tar.bz2 |
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.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 6 |
1 files changed, 0 insertions, 6 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 { |