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 ();
|
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 ()
|
std::vector <Interval> Datafile::getAllIntervals ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,7 +40,6 @@ public:
|
||||||
std::string name () const;
|
std::string name () const;
|
||||||
|
|
||||||
Interval getLatestInterval ();
|
Interval getLatestInterval ();
|
||||||
std::vector <Interval> getAllIntervalsSince (Datetime);
|
|
||||||
std::vector <Interval> getAllIntervals ();
|
std::vector <Interval> getAllIntervals ();
|
||||||
|
|
||||||
void addExclusion (const std::string&);
|
void addExclusion (const std::string&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue