CmdStop: Code cleanup

This commit is contained in:
Paul Beckingham 2016-06-12 08:54:25 -04:00
parent 6dc7a021a4
commit 6d32c1d090

View file

@ -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"))