Skip to content

Commit

Permalink
Task: Reapplying reverted changes 16
Browse files Browse the repository at this point in the history
  • Loading branch information
pbeckingham committed Feb 27, 2018
1 parent 8174ab4 commit f3167cb
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1474,11 +1474,7 @@ void Task::substitute (
// 2) To provide suitable warnings about odd states
// 3) To generate errors when the inconsistencies are not fixable
//
void Task::validate (bool
#ifdef PRODUCT_TASKWARRIOR
applyDefault
#endif
)
void Task::validate (bool applyDefault /* = true */)
{
Task::status status = Task::pending;
if (get ("status") != "")
Expand Down Expand Up @@ -1665,16 +1661,7 @@ void Task::validate (bool
}

////////////////////////////////////////////////////////////////////////////////
void Task::validate_before (
const std::string&
#ifdef PRODUCT_TASKWARRIOR
left
#endif
, const std::string&
#ifdef PRODUCT_TASKWARRIOR
right
#endif
)
void Task::validate_before (const std::string& left, const std::string& right)
{
#ifdef PRODUCT_TASKWARRIOR
if (has (left) &&
Expand Down

0 comments on commit f3167cb

Please sign in to comment.