diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-04 20:56:30 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-10-06 18:02:05 (GMT) |
commit | 5213f8936fd5a70e1f38939e5d1894e7fabb9e02 (patch) | |
tree | ca8ad4feba48daed0e3dabc967e3215adcca3352 /Source/cmOutputConverter.cxx | |
parent | b61c268bd04425597e2e9c5f213dea3cdad3cb19 (diff) | |
download | CMake-5213f8936fd5a70e1f38939e5d1894e7fabb9e02.zip CMake-5213f8936fd5a70e1f38939e5d1894e7fabb9e02.tar.gz CMake-5213f8936fd5a70e1f38939e5d1894e7fabb9e02.tar.bz2 |
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.cxx | 5 |
1 files changed, 0 insertions, 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 = |