Remove getAllInclusions helper function

All locations in the code that was creating Intervals for all entries in
the database have been removed. This function can now be removed as
well.
This commit is contained in:
Shaun Ruffell 2020-01-05 12:54:05 -06:00 committed by lauft
parent 91e4da7a4c
commit 610e78fede
2 changed files with 0 additions and 15 deletions

View file

@ -311,20 +311,6 @@ std::vector <Range> getAllExclusions (
return merge (addRanges (range, results, exclusionRanges));
}
////////////////////////////////////////////////////////////////////////////////
std::vector <Interval> getAllInclusions (Database& database)
{
std::vector <Interval> all;
auto it = database.rbegin ();
auto end = database.rend ();
for ( ;it != end; ++it)
{
all.push_back (IntervalFactory::fromSerialization (*it));
}
return all;
}
////////////////////////////////////////////////////////////////////////////////
std::vector <Interval> subset (
const Interval& filter,

View file

@ -40,7 +40,6 @@
Interval getFilter (const CLI&);
std::vector <Range> getHolidays (const Rules&);
std::vector <Range> getAllExclusions (const Rules&, const Range&);
std::vector <Interval> getAllInclusions (Database&);
std::vector <Interval> subset (const Interval&, const std::vector <Interval>&);
std::vector <Range> subset (const Range&, const std::vector <Range>&);
std::vector <Interval> subset (const Range&, const std::vector <Interval>&);