From 5276bfd4731cdbfe4efa20b97d1c72a135f2c941 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 29 Aug 2011 21:12:23 -0400 Subject: [PATCH] TDB2 - Converted 'export' to TDB2. --- src/commands/CmdExport.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/commands/CmdExport.cpp b/src/commands/CmdExport.cpp index 829714a02..f3bea3368 100644 --- a/src/commands/CmdExport.cpp +++ b/src/commands/CmdExport.cpp @@ -49,17 +49,9 @@ int CmdExport::execute (std::string& output) { int rc = 0; - // Get all the tasks. - std::vector tasks; - context.tdb.lock (context.config.getBoolean ("locking")); - handleRecurrence (); - context.tdb.load (tasks); - context.tdb.commit (); - context.tdb.unlock (); - // Apply filter. std::vector filtered; - filter (tasks, filtered); + filter (filtered); if (filtered.size () == 0) {