Cleanup: Removed useless comment

This commit is contained in:
Paul Beckingham 2016-07-24 14:34:34 -04:00
parent 6dca686763
commit 396135e062
8 changed files with 0 additions and 8 deletions

View file

@ -56,7 +56,6 @@ int CmdDelete (
if (id > static_cast <int> (tracked.size ())) if (id > static_cast <int> (tracked.size ()))
throw format ("ID '@{1}' does not correspond to any tracking.", id); throw format ("ID '@{1}' does not correspond to any tracking.", id);
// Note: It's okay to subtract a one-based number from a zero-based index.
database.deleteInterval (tracked[tracked.size () - id]); database.deleteInterval (tracked[tracked.size () - id]);
if (rules.getBoolean ("verbose")) if (rules.getBoolean ("verbose"))

View file

@ -58,7 +58,6 @@ int CmdJoin (
if (id > static_cast <int> (tracked.size ())) if (id > static_cast <int> (tracked.size ()))
throw format ("ID '@{1}' does not correspond to any tracking.", id); throw format ("ID '@{1}' does not correspond to any tracking.", id);
// Note: It's okay to subtract a one-based number from a zero-based index.
auto first_id = std::max (ids[0], ids[1]); auto first_id = std::max (ids[0], ids[1]);
auto second_id = std::min (ids[0], ids[1]); auto second_id = std::min (ids[0], ids[1]);
Interval first = tracked[tracked.size () - first_id]; Interval first = tracked[tracked.size () - first_id];

View file

@ -65,7 +65,6 @@ int CmdLengthen (
if (id > static_cast <int> (tracked.size ())) if (id > static_cast <int> (tracked.size ()))
throw format ("ID '@{1}' does not correspond to any tracking.", id); throw format ("ID '@{1}' does not correspond to any tracking.", id);
// Note: It's okay to subtract a one-based number from a zero-based index.
Interval i = tracked[tracked.size () - id]; Interval i = tracked[tracked.size () - id];
if (i.range.is_open ()) if (i.range.is_open ())
throw format ("Cannot lengthen open interval @{1}", id); throw format ("Cannot lengthen open interval @{1}", id);

View file

@ -68,7 +68,6 @@ int CmdMove (
throw format ("ID '@{1}' does not correspond to any tracking.", id); throw format ("ID '@{1}' does not correspond to any tracking.", id);
// Move start time. // Move start time.
// Note: It's okay to subtract a one-based number from a zero-based index.
Interval i = tracked[tracked.size () - id]; Interval i = tracked[tracked.size () - id];
Datetime start (new_start); Datetime start (new_start);

View file

@ -65,7 +65,6 @@ int CmdShorten (
if (id > static_cast <int> (tracked.size ())) if (id > static_cast <int> (tracked.size ()))
throw format ("ID '@{1}' does not correspond to any tracking.", id); throw format ("ID '@{1}' does not correspond to any tracking.", id);
// Note: It's okay to subtract a one-based number from a zero-based index.
Interval i = tracked[tracked.size () - id]; Interval i = tracked[tracked.size () - id];
if (i.range.is_open ()) if (i.range.is_open ())
throw format ("Cannot shorten open interval @{1}", id); throw format ("Cannot shorten open interval @{1}", id);

View file

@ -58,7 +58,6 @@ int CmdSplit (
if (id > static_cast <int> (tracked.size ())) if (id > static_cast <int> (tracked.size ()))
throw format ("ID '@{1}' does not correspond to any tracking.", id); throw format ("ID '@{1}' does not correspond to any tracking.", id);
// Note: It's okay to subtract a one-based number from a zero-based index.
Interval first = tracked[tracked.size () - id]; Interval first = tracked[tracked.size () - id];
Interval second = first; Interval second = first;

View file

@ -63,7 +63,6 @@ int CmdTag (
if (id > static_cast <int> (tracked.size ())) if (id > static_cast <int> (tracked.size ()))
throw format ("ID '@{1}' does not correspond to any tracking.", id); throw format ("ID '@{1}' does not correspond to any tracking.", id);
// Note: It's okay to subtract a one-based number from a zero-based index.
Interval i = tracked[tracked.size () - id]; Interval i = tracked[tracked.size () - id];
for (auto& tag : tags) for (auto& tag : tags)

View file

@ -63,7 +63,6 @@ int CmdUntag (
if (id > static_cast <int> (tracked.size ())) if (id > static_cast <int> (tracked.size ()))
throw format ("ID '@{1}' does not correspond to any tracking.", id); throw format ("ID '@{1}' does not correspond to any tracking.", id);
// Note: It's okay to subtract a one-based number from a zero-based index.
Interval i = tracked[tracked.size () - id]; Interval i = tracked[tracked.size () - id];
for (auto& tag : tags) for (auto& tag : tags)