From 3bdaeb5f912962b053ed6d0e5ac1e8f4d7c8f5bf Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 8 Sep 2014 00:10:27 -0400 Subject: [PATCH] CmdAdd - Removed TDB2::commit. - Removed unnecessary return code. --- src/commands/CmdAdd.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/commands/CmdAdd.cpp b/src/commands/CmdAdd.cpp index 7cd7afd5f..5de9e7184 100644 --- a/src/commands/CmdAdd.cpp +++ b/src/commands/CmdAdd.cpp @@ -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; } ////////////////////////////////////////////////////////////////////////////////