mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdStop: Code cleanup
This commit is contained in:
parent
6dc7a021a4
commit
6d32c1d090
1 changed files with 0 additions and 9 deletions
|
@ -44,7 +44,6 @@ int CmdStop (
|
||||||
// Verify the interval is open.
|
// Verify the interval is open.
|
||||||
if (latest.range.is_open ())
|
if (latest.range.is_open ())
|
||||||
{
|
{
|
||||||
// Stop it.
|
|
||||||
Interval modified {latest};
|
Interval modified {latest};
|
||||||
|
|
||||||
// If a stop date is specified (and occupies filter.range.start) then use
|
// If a stop date is specified (and occupies filter.range.start) then use
|
||||||
|
@ -55,14 +54,6 @@ int CmdStop (
|
||||||
modified.range.end = Datetime ();
|
modified.range.end = Datetime ();
|
||||||
|
|
||||||
database.modifyInterval (latest, modified);
|
database.modifyInterval (latest, modified);
|
||||||
/*
|
|
||||||
// TODO There is no 1:N modifyInterval.
|
|
||||||
datebase.deleteInterval (latest);
|
|
||||||
|
|
||||||
// TODO Create and populate a Timeline.
|
|
||||||
for (auto& fragment : splitInterval (modified, ?))
|
|
||||||
database.addInterval (fragment);
|
|
||||||
*/
|
|
||||||
|
|
||||||
// TODO intervalSummarїze needs to operate on a vector of similar intervals.
|
// TODO intervalSummarїze needs to operate on a vector of similar intervals.
|
||||||
if (rules.getBoolean ("verbose"))
|
if (rules.getBoolean ("verbose"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue