mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Remove unnecessary check from Range::startsWithin/endsWithin
This commit is contained in:
parent
6f79313519
commit
c48063dec7
1 changed files with 0 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue