Remove getOverlaps function

Since the Intervals are all in order, we can use getTracked directly to
get overlapping intervals without the need to copy the Intervals into
another vector.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
Shaun Ruffell 2020-06-07 23:12:57 -05:00 committed by Thomas Lauf
parent 7bc511bc73
commit 356f20c9de
3 changed files with 2 additions and 20 deletions

View file

@ -97,7 +97,8 @@ static void autoAdjust (
Database& database,
Interval& interval)
{
auto overlaps = getOverlaps (database, rules, interval);
Interval overlaps_filter {interval.start, interval.end};
auto overlaps = getTracked (database, rules, overlaps_filter);
if (overlaps.empty ())
{