Task Validation

- Cleaned up the 'annotate' and 'denotate' code due to the new
  validation code.
This commit is contained in:
Paul Beckingham 2011-08-31 01:48:00 -04:00
parent 885bde51f1
commit 4cc368da82
2 changed files with 0 additions and 7 deletions

View file

@ -77,10 +77,6 @@ int CmdAnnotate::execute (std::string& output)
{ {
Task before (*task); Task before (*task);
modify_task_annotate (*task, modifications); modify_task_annotate (*task, modifications);
apply_defaults (*task);
// Only allow valid tasks.
task->validate ();
if (taskDiff (before, *task)) if (taskDiff (before, *task))
{ {

View file

@ -116,9 +116,6 @@ int CmdDenotate::execute (std::string& output)
if (taskDiff (before, *task)) if (taskDiff (before, *task))
{ {
// Only allow valid tasks.
task->validate ();
if (permission.confirmed (before, if (permission.confirmed (before,
taskDifferences (before, *task) + STRING_CMD_DONE_PROCEED)) taskDifferences (before, *task) + STRING_CMD_DONE_PROCEED))
{ {