From 9df4c8156e7d82b37bf8414da8376e1a35f95c51 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sun, 30 Apr 2023 21:48:00 +0000 Subject: [PATCH] remove TDB::commit --- src/Context.cpp | 1 - src/TDB2.cpp | 6 ------ src/TDB2.h | 1 - 3 files changed, 8 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index 7879d336b..569d15568 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -735,7 +735,6 @@ int Context::run () { hooks.onLaunch (); rc = dispatch (output); - tdb2.commit (); // Harmless if called when nothing changed. hooks.onExit (); // No chance to update data. timer_total.stop (); diff --git a/src/TDB2.cpp b/src/TDB2.cpp index cf0da46c0..20c6196e7 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -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 () { diff --git a/src/TDB2.h b/src/TDB2.h index 3d1eeadbf..20b99d6be 100644 --- a/src/TDB2.h +++ b/src/TDB2.h @@ -49,7 +49,6 @@ public: void open_replica (const std::string&, bool create_if_missing); void add (Task&); void modify (Task&); - void commit (); void get_changes (std::vector &); void revert (); void gc ();