Convert: Remove obsolete GetRelativeRootPath
This commit is contained in:
parent
c341f4679a
commit
fbd8394867
|
@ -46,23 +46,6 @@ std::string cmOutputConverter::ConvertToOutputForExisting(
|
|||
return this->ConvertToOutputFormat(remote, format);
|
||||
}
|
||||
|
||||
const char* cmOutputConverter::GetRelativeRootPath(RelativeRoot relroot) const
|
||||
{
|
||||
switch (relroot) {
|
||||
case HOME:
|
||||
return this->GetState()->GetSourceDirectory();
|
||||
case START:
|
||||
return this->StateSnapshot.GetDirectory().GetCurrentSource();
|
||||
case HOME_OUTPUT:
|
||||
return this->GetState()->GetBinaryDirectory();
|
||||
case START_OUTPUT:
|
||||
return this->StateSnapshot.GetDirectory().GetCurrentBinary();
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return CM_NULLPTR;
|
||||
}
|
||||
|
||||
std::string cmOutputConverter::Convert(const std::string& source,
|
||||
RelativeRoot relative,
|
||||
OutputFormat output) const
|
||||
|
|
|
@ -60,11 +60,6 @@ public:
|
|||
std::string ConvertDirectorySeparatorsForShell(
|
||||
const std::string& source) const;
|
||||
|
||||
/**
|
||||
* Get path for the specified relative root.
|
||||
*/
|
||||
const char* GetRelativeRootPath(RelativeRoot relroot) const;
|
||||
|
||||
///! for existing files convert to output path and short path if spaces
|
||||
std::string ConvertToOutputForExisting(const std::string& remote,
|
||||
OutputFormat format = SHELL) const;
|
||||
|
|
Loading…
Reference in New Issue