From 5213f8936fd5a70e1f38939e5d1894e7fabb9e02 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 4 Oct 2016 22:56:30 +0200 Subject: Convert: Remove early return check This function delegates to another function which does the same check. --- Source/cmOutputConverter.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index 70bcb99..9970936 100644 --- a/Source/cmOutputConverter.cxx +++ b/Source/cmOutputConverter.cxx @@ -86,11 +86,6 @@ std::string cmOutputConverter::ConvertToRelativePath( // The local path should never have a trailing slash. assert(local_path.empty() || local_path[local_path.size() - 1] != '/'); - // If the path is already relative then just return the path. - if (!cmSystemTools::FileIsFullPath(remote_path.c_str())) { - return remote_path; - } - const std::string relativePathTopBinary = this->StateSnapshot.GetDirectory().GetRelativePathTopBinary(); const std::string relativePathTopSource = -- cgit v0.12