From 66f8591fcd3203cef9de281a8318dfa003b60252 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 31 Aug 2011 01:43:08 -0400 Subject: [PATCH] Task Validation - Cleaned up the 'start' and 'stop' commands due to the new validation. --- src/commands/CmdStart.cpp | 4 ---- src/commands/CmdStop.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/commands/CmdStart.cpp b/src/commands/CmdStart.cpp index 3401be8eb..13eb94925 100644 --- a/src/commands/CmdStart.cpp +++ b/src/commands/CmdStart.cpp @@ -79,7 +79,6 @@ int CmdStart::execute (std::string& output) Task before (*task); modify_task_annotate (*task, modifications); - apply_defaults (*task); // Add a start time. task->setStart (); @@ -87,9 +86,6 @@ int CmdStart::execute (std::string& output) if (context.config.getBoolean ("journal.time")) task->addAnnotation (context.config.get ("journal.time.start.annotation")); - // Only allow valid tasks. - task->validate (); - if (taskDiff (before, *task)) { if (permission.confirmed (before, taskDifferences (before, *task) + STRING_CMD_DONE_PROCEED)) diff --git a/src/commands/CmdStop.cpp b/src/commands/CmdStop.cpp index 1adc157b6..8882e66f4 100644 --- a/src/commands/CmdStop.cpp +++ b/src/commands/CmdStop.cpp @@ -78,7 +78,6 @@ int CmdStop::execute (std::string& output) Task before (*task); modify_task_annotate (*task, modifications); - apply_defaults (*task); // Remove the start time. task->remove ("start"); @@ -86,9 +85,6 @@ int CmdStop::execute (std::string& output) if (context.config.getBoolean ("journal.time")) task->addAnnotation (context.config.get ("journal.time.stop.annotation")); - // Only allow valid tasks. - task->validate (); - if (taskDiff (before, *task)) { if (permission.confirmed (before, taskDifferences (before, *task) + STRING_CMD_DONE_PROCEED))