Task Validation
- Cleaned up the 'annotate' and 'denotate' code due to the new validation code.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user