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));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue