mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-24 03:02:46 +08:00
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.
This commit is contained in:
@@ -79,13 +79,6 @@ static bool cmOutputConverterNotAbove(const char* a, const char* b)
|
|||||||
std::string cmOutputConverter::ConvertToRelativePath(
|
std::string cmOutputConverter::ConvertToRelativePath(
|
||||||
std::string const& local_path, std::string const& remote_path) const
|
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 =
|
const std::string relativePathTopBinary =
|
||||||
this->StateSnapshot.GetDirectory().GetRelativePathTopBinary();
|
this->StateSnapshot.GetDirectory().GetRelativePathTopBinary();
|
||||||
const std::string relativePathTopSource =
|
const std::string relativePathTopSource =
|
||||||
|
Reference in New Issue
Block a user