Enhancement - TDB API cleanup

- Removed obsolete TDB::deleteT method.
- Removed obsolete TDB::completeT method.
- Updated documentation.
This commit is contained in:
Paul Beckingham
2009-05-08 00:37:24 -04:00
parent 90c721295a
commit 5814432366
7 changed files with 37 additions and 59 deletions

View File

@@ -470,7 +470,13 @@ void handleRecurrence (TDB& tdb, std::vector <T>& tasks)
<< " ("
<< trim (t->getDescription ())
<< ") is past its 'until' date, and has be deleted" << std::endl;
tdb.deleteT (*t);
// Determine the end date.
char endTime[16];
sprintf (endTime, "%u", (unsigned int) time (NULL));
t->setAttribute ("end", endTime);
t->setStatus (T::deleted);
tdb.modifyT (*t);
continue;
}