Code Cleanup

- Eliminated redundant getDueDate helper function.
This commit is contained in:
Paul Beckingham 2012-03-03 14:40:35 -05:00
parent 0f4bcefcff
commit facb795f88
5 changed files with 17 additions and 18 deletions

View file

@ -219,7 +219,8 @@ int CmdInfo::execute (std::string& output)
if (format == "")
format = context.config.get ("dateformat");
view.set (row, 1, getDueDate (*task, format));
Date dt (task->get_date ("due"));
view.set (row, 1, dt.toString (context.config.get ("dateformat")));
}
// wait