remove TDB::commit

This commit is contained in:
Dustin J. Mitchell 2023-04-30 21:48:00 +00:00 committed by Dustin J. Mitchell
parent 0882a08d18
commit 9df4c8156e
3 changed files with 0 additions and 8 deletions

View file

@ -735,7 +735,6 @@ int Context::run ()
{ {
hooks.onLaunch (); hooks.onLaunch ();
rc = dispatch (output); rc = dispatch (output);
tdb2.commit (); // Harmless if called when nothing changed.
hooks.onExit (); // No chance to update data. hooks.onExit (); // No chance to update data.
timer_total.stop (); timer_total.stop ();

View file

@ -169,12 +169,6 @@ void TDB2::modify (Task& task)
} }
} }
////////////////////////////////////////////////////////////////////////////////
void TDB2::commit ()
{
// does nothing; changes are committed as they are made
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
const tc::WorkingSet &TDB2::working_set () const tc::WorkingSet &TDB2::working_set ()
{ {

View file

@ -49,7 +49,6 @@ public:
void open_replica (const std::string&, bool create_if_missing); void open_replica (const std::string&, bool create_if_missing);
void add (Task&); void add (Task&);
void modify (Task&); void modify (Task&);
void commit ();
void get_changes (std::vector <Task>&); void get_changes (std::vector <Task>&);
void revert (); void revert ();
void gc (); void gc ();