Code Cleanup

- Removed restriction on waiting recurring tasks.
- Removed unused L10N string.
- Removed unnecessary include.
This commit is contained in:
Paul Beckingham 2012-02-05 10:08:10 -05:00
parent 86f113a24c
commit 412396d35b
3 changed files with 0 additions and 7 deletions

View file

@ -27,7 +27,6 @@
#define L10N // Localization complete. #define L10N // Localization complete.
#include <iostream> // TODO Remove.
#include <iomanip> #include <iomanip>
#include <sstream> #include <sstream>
#include <time.h> #include <time.h>

View file

@ -1114,11 +1114,6 @@ void Task::validate ()
throw std::string (format (STRING_TASK_VALID_RECUR, get ("recur"))); 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. // Priorities must be valid.
if (has ("priority")) if (has ("priority"))
{ {

View file

@ -756,7 +756,6 @@
#define STRING_TASK_VALID_REC_DUE "A recurring task must also have a 'due' date." #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_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_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_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_VALVE "This command has no filter, and will modify all tasks. Are you sure?"
#define STRING_TASK_SAFETY_FAIL "Command prevented from running." #define STRING_TASK_SAFETY_FAIL "Command prevented from running."