mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Code Cleanup
- The "next" command had two control paths. One was via custom reports (correct) and the other was a residual handler (obsolete), which is now removed. This also simplifies a handleCustomReport/runCustomReport issue.
This commit is contained in:
parent
307027a1d9
commit
254b418708
3 changed files with 1 additions and 71 deletions
|
@ -251,8 +251,7 @@ int Context::dispatch (std::string &out)
|
|||
else if (cmd.command == "" &&
|
||||
sequence.size ()) { rc = handleModify (out); }
|
||||
|
||||
// Command that display IDs and therefore need TDB::gc first.
|
||||
else if (cmd.command == "next") { if (!inShadow) tdb.gc (); rc = handleReportNext (out); }
|
||||
// Commands that display IDs and therefore need TDB::gc first.
|
||||
else if (cmd.validCustom (cmd.command)) { if (!inShadow) tdb.gc (); rc = handleCustomReport (cmd.command, out); }
|
||||
|
||||
// If the command is not recognized, display usage.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue