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
commit52168f3210ca07a8d80991958d588789c2693d63 (patch)
tree35ee15cb13be7355de62850cb870565ad4aac647 /Source/cmOutputConverter.cxx
parent5213f8936fd5a70e1f38939e5d1894e7fabb9e02 (diff)
downloadcmake-52168f3210ca07a8d80991958d588789c2693d63.tar.gz
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 997093616c..5d31f02fdc 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 =