mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task Validation
- Cleaned up the 'delete' command due to the new validation code.
This commit is contained in:
parent
4cc368da82
commit
12cfdf1b5a
1 changed files with 0 additions and 6 deletions
|
@ -79,7 +79,6 @@ int CmdDelete::execute (std::string& output)
|
|||
task->getStatus () == Task::waiting)
|
||||
{
|
||||
modify_task_annotate (*task, modifications);
|
||||
apply_defaults (*task);
|
||||
|
||||
std::string question = format (STRING_CMD_DELETE_QUESTION,
|
||||
task->id,
|
||||
|
@ -112,9 +111,6 @@ int CmdDelete::execute (std::string& output)
|
|||
|
||||
// Apply the command line modifications to the sibling.
|
||||
modify_task_annotate (*sibling, modifications);
|
||||
apply_defaults (*sibling);
|
||||
|
||||
sibling->validate ();
|
||||
context.tdb.update (*sibling);
|
||||
++count;
|
||||
|
||||
|
@ -138,7 +134,6 @@ int CmdDelete::execute (std::string& output)
|
|||
if (! task->has ("end"))
|
||||
task->setEnd ();
|
||||
|
||||
task->validate ();
|
||||
context.tdb.update (*task);
|
||||
++count;
|
||||
|
||||
|
@ -160,7 +155,6 @@ int CmdDelete::execute (std::string& output)
|
|||
if (! task->has ("end"))
|
||||
task->setEnd ();
|
||||
|
||||
task->validate ();
|
||||
context.tdb.update (*task);
|
||||
++count;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue