- Removed TDB2::commit.
- Removed unnecessary return code.
This commit is contained in:
Paul Beckingham 2014-09-08 00:10:27 -04:00
parent c4c25706ac
commit 3bdaeb5f91

View file

@ -47,8 +47,6 @@ CmdAdd::CmdAdd ()
////////////////////////////////////////////////////////////////////////////////
int CmdAdd::execute (std::string& output)
{
int rc = 0;
// Apply the command line modifications to the new task.
Task task;
task.modify (Task::modReplace, true);
@ -62,8 +60,7 @@ int CmdAdd::execute (std::string& output)
if (context.verbose ("project"))
context.footnote (onProjectChange (task));
context.tdb2.commit ();
return rc;
return 0;
}
////////////////////////////////////////////////////////////////////////////////