From 4cc368da8201968e5cb83f62bfca05e3411751dd Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 31 Aug 2011 01:48:00 -0400 Subject: [PATCH] Task Validation - Cleaned up the 'annotate' and 'denotate' code due to the new validation code. --- src/commands/CmdAnnotate.cpp | 4 ---- src/commands/CmdDenotate.cpp | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/commands/CmdAnnotate.cpp b/src/commands/CmdAnnotate.cpp index 28e2eb68c..3528b55a7 100644 --- a/src/commands/CmdAnnotate.cpp +++ b/src/commands/CmdAnnotate.cpp @@ -77,10 +77,6 @@ int CmdAnnotate::execute (std::string& output) { Task before (*task); modify_task_annotate (*task, modifications); - apply_defaults (*task); - - // Only allow valid tasks. - task->validate (); if (taskDiff (before, *task)) { diff --git a/src/commands/CmdDenotate.cpp b/src/commands/CmdDenotate.cpp index 12ee03273..06c5b1c3e 100644 --- a/src/commands/CmdDenotate.cpp +++ b/src/commands/CmdDenotate.cpp @@ -116,9 +116,6 @@ int CmdDenotate::execute (std::string& output) if (taskDiff (before, *task)) { - // Only allow valid tasks. - task->validate (); - if (permission.confirmed (before, taskDifferences (before, *task) + STRING_CMD_DONE_PROCEED)) {