mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 00:00:39 -05:00
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.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user