summaryrefslogtreecommitdiff
path: root/Source/cmOutputConverter.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-04 22:56:30 +0200
committerStephen Kelly <steveire@gmail.com>2016-10-06 20:02:05 +0200
commit5213f8936fd5a70e1f38939e5d1894e7fabb9e02 (patch)
treeca8ad4feba48daed0e3dabc967e3215adcca3352 /Source/cmOutputConverter.cxx
parentb61c268bd04425597e2e9c5f213dea3cdad3cb19 (diff)
downloadcmake-5213f8936fd5a70e1f38939e5d1894e7fabb9e02.tar.gz
Convert: Remove early return check
This function delegates to another function which does the same check.
Diffstat (limited to 'Source/cmOutputConverter.cxx')
-rw-r--r--Source/cmOutputConverter.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx
index 70bcb99287..997093616c 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 =