Code Cleanup
- Removed restriction on waiting recurring tasks. - Removed unused L10N string. - Removed unnecessary include.
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
|
||||
#define L10N // Localization complete.
|
||||
|
||||
#include <iostream> // TODO Remove.
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <time.h>
|
||||
|
||||
@@ -1114,11 +1114,6 @@ void Task::validate ()
|
||||
throw std::string (format (STRING_TASK_VALID_RECUR, get ("recur")));
|
||||
}
|
||||
|
||||
// TODO Remove this restriction.
|
||||
if (has ("wait") &&
|
||||
getStatus () == Task::recurring)
|
||||
throw std::string (STRING_TASK_VALID_WAIT_RECUR);
|
||||
|
||||
// Priorities must be valid.
|
||||
if (has ("priority"))
|
||||
{
|
||||
|
||||
@@ -756,7 +756,6 @@
|
||||
#define STRING_TASK_VALID_REC_DUE "A recurring task must also have a 'due' date."
|
||||
#define STRING_TASK_VALID_UNTIL "Only recurring tasks may have an 'until' date."
|
||||
#define STRING_TASK_VALID_RECUR "The recurrence value '{1}' is not valid."
|
||||
#define STRING_TASK_VALID_WAIT_RECUR "You cannot create a task that is both waiting and recurring."
|
||||
#define STRING_TASK_VALID_PRIORITY "Priority values may be 'H', 'M' or 'L', not '{1}'."
|
||||
#define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all tasks. Are you sure?"
|
||||
#define STRING_TASK_SAFETY_FAIL "Command prevented from running."
|
||||
|
||||
Reference in New Issue
Block a user