mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Cleanup: Removed useless comment
This commit is contained in:
parent
6dca686763
commit
396135e062
8 changed files with 0 additions and 8 deletions
|
@ -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"))
|
||||||
|
|
|
@ -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];
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue