mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Datafile: Removed unused ::getAllIntervalsSince
This commit is contained in:
parent
90525013a3
commit
6fc25a3de1
2 changed files with 0 additions and 19 deletions
|
@ -65,24 +65,6 @@ Interval Datafile::getLatestInterval ()
|
|||
return Interval ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::vector <Interval> Datafile::getAllIntervalsSince (Datetime when)
|
||||
{
|
||||
if (when >= _day1 && when <= _dayN)
|
||||
{
|
||||
if (! _intervals_loaded)
|
||||
load_intervals ();
|
||||
|
||||
// Rely on intervals being sorted by start time.
|
||||
std::vector <Interval>::iterator i;
|
||||
for (i = _intervals.begin (); i != _intervals.end (); i++)
|
||||
if (i->start () >= when)
|
||||
return std::vector <Interval> (i, _intervals.end ());
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::vector <Interval> Datafile::getAllIntervals ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue