From 12cfdf1b5a19faa5a97e99c675fa54d3a1ea07e6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 31 Aug 2011 01:50:13 -0400 Subject: [PATCH] Task Validation - Cleaned up the 'delete' command due to the new validation code. --- src/commands/CmdDelete.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/commands/CmdDelete.cpp b/src/commands/CmdDelete.cpp index 93401248e..f031ad6fc 100644 --- a/src/commands/CmdDelete.cpp +++ b/src/commands/CmdDelete.cpp @@ -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;