Unit Tests - repair

- Added auto right trim to all table rows, which is a much more
  efficient way of doing what Table::optimize was doing.
- Table::optimize is now a nop.
This commit is contained in:
Paul Beckingham 2009-03-08 22:56:47 -04:00
parent 3f418c6fdc
commit 28e997691f
5 changed files with 18 additions and 49 deletions

View file

@ -1205,11 +1205,7 @@ std::string handleReportGHistory (TDB& tdb, T& task, Config& conf)
else
out << "No tasks." << std::endl;
// Eliminate redundant color codes.
std::string optimized = out.str ();
table.optimize (optimized);
return optimized;
return out.str ();
}
////////////////////////////////////////////////////////////////////////////////
@ -2266,7 +2262,7 @@ std::string handleCustomReport (
// Load all pending tasks.
std::vector <T> tasks;
tdb.pendingT (tasks);
tdb.allPendingT (tasks);
handleRecurrence (tdb, tasks);
// Apply filters.