- Removed debugging, obsolete code.

This commit is contained in:
Paul Beckingham 2008-05-30 22:07:06 -04:00
parent 7c9554e8c5
commit fd8f63dec6

View file

@ -302,7 +302,6 @@ void handleAdd (const TDB& tdb, T& task, Config& conf)
task.setAttribute ("entry", entryTime); task.setAttribute ("entry", entryTime);
if (task.getDescription () == "") if (task.getDescription () == "")
// std::cout << "Cannot add a blank task" << std::endl;
throw std::string ("Cannot add a blank task."); throw std::string ("Cannot add a blank task.");
if (!tdb.addT (task)) if (!tdb.addT (task))
@ -408,7 +407,7 @@ void handleList (const TDB& tdb, T& task, Config& conf)
} }
#endif #endif
/* int count = */ tdb.gc (); tdb.gc ();
// Get the pending tasks. // Get the pending tasks.
std::vector <T> tasks; std::vector <T> tasks;
@ -564,15 +563,6 @@ void handleList (const TDB& tdb, T& task, Config& conf)
else else
std::cout << "No matches." std::cout << "No matches."
<< std::endl; << 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 #endif
/* int count = */ tdb.gc (); tdb.gc ();
// Get the pending tasks. // Get the pending tasks.
std::vector <T> tasks; std::vector <T> tasks;
@ -734,15 +724,6 @@ void handleSmallList (const TDB& tdb, T& task, Config& conf)
else else
std::cout << "No matches." std::cout << "No matches."
<< std::endl; << 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 #endif
/* int count = */ tdb.gc (); tdb.gc ();
// Get the pending tasks. // Get the pending tasks.
std::vector <T> tasks; std::vector <T> tasks;
@ -864,15 +845,6 @@ void handleCompleted (const TDB& tdb, T& task, Config& conf)
else else
std::cout << "No matches." std::cout << "No matches."
<< std::endl; << 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 #endif
/* int count = */ tdb.gc (); tdb.gc ();
// Get all the tasks. // Get all the tasks.
std::vector <T> tasks; std::vector <T> tasks;
@ -1231,15 +1203,6 @@ void handleLongList (const TDB& tdb, T& task, Config& conf)
<< std::endl; << std::endl;
else else
std::cout << "No matches." << std::endl; 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 #endif
/* int gcCount = */ tdb.gc (); tdb.gc ();
// Get the pending tasks. // Get the pending tasks.
std::vector <T> tasks; std::vector <T> tasks;
@ -1584,15 +1547,6 @@ void handleReportNext (const TDB& tdb, T& task, Config& conf)
else else
std::cout << "No matches." std::cout << "No matches."
<< std::endl; << std::endl;
/*
if (gcCount)
std::cout << std::endl
<< "[gc: "
<< gcCount
<< " transferred]"
<< std::endl;
*/
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////