From dde399f765b9ebd689acf28c211c08d81dd1582f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 30 Aug 2011 00:00:23 -0400 Subject: [PATCH] TDB2 - Converted 'burndown.{m,d,y}' to TDB2. --- src/commands/CmdBurndown.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/commands/CmdBurndown.cpp b/src/commands/CmdBurndown.cpp index 1a61914fb..cf718990e 100644 --- a/src/commands/CmdBurndown.cpp +++ b/src/commands/CmdBurndown.cpp @@ -944,16 +944,11 @@ int CmdBurndownMonthly::execute (std::string& output) int rc = 0; // Scan the pending tasks, applying any filter. - 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); // Create a chart, scan the tasks, then render. Chart chart ('M'); @@ -988,16 +983,11 @@ int CmdBurndownWeekly::execute (std::string& output) int rc = 0; // Scan the pending tasks, applying any filter. - 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); // Create a chart, scan the tasks, then render. Chart chart ('W'); @@ -1032,16 +1022,11 @@ int CmdBurndownDaily::execute (std::string& output) int rc = 0; // Scan the pending tasks, applying any filter. - 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); // Create a chart, scan the tasks, then render. Chart chart ('D');