From fd8f63dec6d5f614834497202efd7406fbd94bcd Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 30 May 2008 22:07:06 -0400 Subject: [PATCH] - Removed debugging, obsolete code. --- src/task.cpp | 56 +++++----------------------------------------------- 1 file changed, 5 insertions(+), 51 deletions(-) diff --git a/src/task.cpp b/src/task.cpp index 8c89852e6..3fe47e9d3 100644 --- a/src/task.cpp +++ b/src/task.cpp @@ -302,7 +302,6 @@ void handleAdd (const TDB& tdb, T& task, Config& conf) task.setAttribute ("entry", entryTime); if (task.getDescription () == "") -// std::cout << "Cannot add a blank task" << std::endl; throw std::string ("Cannot add a blank task."); if (!tdb.addT (task)) @@ -408,7 +407,7 @@ void handleList (const TDB& tdb, T& task, Config& conf) } #endif - /* int count = */ tdb.gc (); + tdb.gc (); // Get the pending tasks. std::vector tasks; @@ -564,15 +563,6 @@ void handleList (const TDB& tdb, T& task, Config& conf) else std::cout << "No matches." << std::endl; - -/* - if (count) - std::cout << std::endl - << "[gc: " - << count - << " transferred]" - << std::endl; -*/ } //////////////////////////////////////////////////////////////////////////////// @@ -592,7 +582,7 @@ void handleSmallList (const TDB& tdb, T& task, Config& conf) } #endif - /* int count = */ tdb.gc (); + tdb.gc (); // Get the pending tasks. std::vector tasks; @@ -734,15 +724,6 @@ void handleSmallList (const TDB& tdb, T& task, Config& conf) else std::cout << "No matches." << std::endl; - -/* - if (count) - std::cout << std::endl - << "[gc: " - << count - << " transferred]" - << std::endl; -*/ } //////////////////////////////////////////////////////////////////////////////// @@ -761,7 +742,7 @@ void handleCompleted (const TDB& tdb, T& task, Config& conf) } #endif - /* int count = */ tdb.gc (); + tdb.gc (); // Get the pending tasks. std::vector tasks; @@ -864,15 +845,6 @@ void handleCompleted (const TDB& tdb, T& task, Config& conf) else std::cout << "No matches." << std::endl; - -/* - if (count) - std::cout << std::endl - << "[gc: " - << count - << " transferred]" - << std::endl; -*/ } //////////////////////////////////////////////////////////////////////////////// @@ -1051,7 +1023,7 @@ void handleLongList (const TDB& tdb, T& task, Config& conf) } #endif - /* int count = */ tdb.gc (); + tdb.gc (); // Get all the tasks. std::vector tasks; @@ -1231,15 +1203,6 @@ void handleLongList (const TDB& tdb, T& task, Config& conf) << std::endl; else std::cout << "No matches." << std::endl; - -/* - if (count) - std::cout << std::endl - << "[gc: " - << count - << " transferred]" - << std::endl; -*/ } //////////////////////////////////////////////////////////////////////////////// @@ -1428,7 +1391,7 @@ void handleReportNext (const TDB& tdb, T& task, Config& conf) } #endif - /* int gcCount = */ tdb.gc (); + tdb.gc (); // Get the pending tasks. std::vector tasks; @@ -1584,15 +1547,6 @@ void handleReportNext (const TDB& tdb, T& task, Config& conf) else std::cout << "No matches." << std::endl; - -/* - if (gcCount) - std::cout << std::endl - << "[gc: " - << gcCount - << " transferred]" - << std::endl; -*/ } ////////////////////////////////////////////////////////////////////////////////