summaryrefslogtreecommitdiffstats
path: root/Source/cmOutputConverter.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-04 20:56:30 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-06 18:02:05 (GMT)
commit52168f3210ca07a8d80991958d588789c2693d63 (patch)
tree35ee15cb13be7355de62850cb870565ad4aac647 /Source/cmOutputConverter.cxx
parent5213f8936fd5a70e1f38939e5d1894e7fabb9e02 (diff)
downloadCMake-52168f3210ca07a8d80991958d588789c2693d63.zip
CMake-52168f3210ca07a8d80991958d588789c2693d63.tar.gz
CMake-52168f3210ca07a8d80991958d588789c2693d63.tar.bz2
Convert: Remove asserts which are duplicated in delegate method
This means that we don't encounter the asserts in the case where we early-return from here.
Diffstat (limited to 'Source/cmOutputConverter.cxx')
-rw-r--r--Source/cmOutputConverter.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx
index 9970936..5d31f02 100644
--- a/Source/cmOutputConverter.cxx
+++ b/Source/cmOutputConverter.cxx
@@ -79,13 +79,6 @@ static bool cmOutputConverterNotAbove(const char* a, const char* b)
std::string cmOutputConverter::ConvertToRelativePath(
std::string const& local_path, std::string const& remote_path) const
{
- // The paths should never be quoted.
- assert(local_path[0] != '\"');
- assert(remote_path[0] != '\"');
-
- // The local path should never have a trailing slash.
- assert(local_path.empty() || local_path[local_path.size() - 1] != '/');
-
const std::string relativePathTopBinary =
this->StateSnapshot.GetDirectory().GetRelativePathTopBinary();
const std::string relativePathTopSource =