Remove unnecessary check from Range::startsWithin/endsWithin

This commit is contained in:
Thomas Lauf 2018-09-18 19:43:43 +02:00
parent 6f79313519
commit c48063dec7

View file

@ -161,11 +161,6 @@ bool Range::startsWithin (const Range& other) const
return false;
}
if (!is_started ())
{
return !other.is_started ();
}
return other.start == start || other.contains (start);
}
@ -177,11 +172,6 @@ bool Range::endsWithin (const Range& other) const
return false;
}
if (!is_ended ())
{
return !other.is_ended ();
}
return other.end == end || other.contains (end);
}