summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-08-27 13:44:53 +0200
committerStephen Kelly <steveire@gmail.com>2016-08-27 13:44:53 +0200
commitfbd83948675f4b1cb487d59390cfe1689f801fc0 (patch)
treec8a78d69240ee92f70ee5c13d9fadd61d409ba4e /Source
parentc341f4679ad00cb65c7660b474ddabd13d0ef498 (diff)
downloadcmake-fbd83948675f4b1cb487d59390cfe1689f801fc0.tar.gz
Convert: Remove obsolete GetRelativeRootPath
Diffstat (limited to 'Source')
-rw-r--r--Source/cmOutputConverter.cxx17
-rw-r--r--Source/cmOutputConverter.h5
2 files changed, 0 insertions, 22 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx
index 5e1babc229..98872d6267 100644
--- a/Source/cmOutputConverter.cxx
+++ b/Source/cmOutputConverter.cxx
@@ -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
diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h
index 9eb1846374..ff06ab60c5 100644
--- a/Source/cmOutputConverter.h
+++ b/Source/cmOutputConverter.h
@@ -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;