mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
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:
parent
91e4da7a4c
commit
610e78fede
2 changed files with 0 additions and 15 deletions
14
src/data.cpp
14
src/data.cpp
|
@ -311,20 +311,6 @@ std::vector <Range> getAllExclusions (
|
||||||
return merge (addRanges (range, results, exclusionRanges));
|
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 (
|
std::vector <Interval> subset (
|
||||||
const Interval& filter,
|
const Interval& filter,
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
Interval getFilter (const CLI&);
|
Interval getFilter (const CLI&);
|
||||||
std::vector <Range> getHolidays (const Rules&);
|
std::vector <Range> getHolidays (const Rules&);
|
||||||
std::vector <Range> getAllExclusions (const Rules&, const Range&);
|
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 <Interval> subset (const Interval&, const std::vector <Interval>&);
|
||||||
std::vector <Range> subset (const Range&, const std::vector <Range>&);
|
std::vector <Range> subset (const Range&, const std::vector <Range>&);
|
||||||
std::vector <Interval> subset (const Range&, const std::vector <Interval>&);
|
std::vector <Interval> subset (const Range&, const std::vector <Interval>&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue