From 51bc6bddb91283da25d098492c9cc1b50e3008fc Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Thu, 16 Jun 2016 23:25:43 +0200 Subject: cmOutputConverter: remove unused code Remove old ConvertToRelativePath function now that all clients have migrated to the new signature. --- Source/cmOutputConverter.cxx | 9 --------- Source/cmOutputConverter.h | 11 ----------- 2 files changed, 20 deletions(-) diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index 2ef603b..0b270aa 100644 --- a/Source/cmOutputConverter.cxx +++ b/Source/cmOutputConverter.cxx @@ -77,15 +77,6 @@ static bool cmOutputConverterNotAbove(const char* a, const char* b) } std::string cmOutputConverter::ConvertToRelativePath( - const std::vector& local, const std::string& in_remote, - bool force) const -{ - std::string local_path = cmSystemTools::JoinPath(local); - return force ? this->ForceToRelativePath(local_path, in_remote) - : this->ConvertToRelativePath(local_path, in_remote); -} - -std::string cmOutputConverter::ConvertToRelativePath( std::string const& local_path, std::string const& remote_path) const { // The paths should never be quoted. diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h index 5979eaa..fd887ae 100644 --- a/Source/cmOutputConverter.h +++ b/Source/cmOutputConverter.h @@ -101,17 +101,6 @@ public: /** * Convert the given remote path to a relative path with respect to - * the given local path. The local path must be given in component - * form (see SystemTools::SplitPath) without a trailing slash. The - * remote path must use forward slashes and not already be escaped - * or quoted. - */ - std::string ConvertToRelativePath(const std::vector& local, - const std::string& in_remote, - bool force = false) const; - - /** - * Convert the given remote path to a relative path with respect to * the given local path. Both paths must use forward slashes and not * already be escaped or quoted. * The conversion is skipped if the paths are not both in the source -- cgit v0.12