From 22c93d8c877daef2f2c78f38b072fc28b90019e8 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 15 Oct 2016 23:07:19 +0100 Subject: [PATCH] Remove redundant Environment class --- gramps/gen/db/generic.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/gramps/gen/db/generic.py b/gramps/gen/db/generic.py index f4cf382e9..659cedb69 100644 --- a/gramps/gen/db/generic.py +++ b/gramps/gen/db/generic.py @@ -230,19 +230,6 @@ class DbGenericUndo(DbUndo): db.undo_history_callback() return True -class Environment: - """ - Implements the Environment API. - """ - def __init__(self, db): - self.db = db - - def txn_begin(self): - return DbGenericTxn("DbGenericDb Transaction", self.db) - - def txn_checkpoint(self): - pass - class Table: """ Implements Table interface. @@ -682,7 +669,6 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback): self.omap_index = 0 self.rmap_index = 0 self.nmap_index = 0 - self.env = Environment(self) self.person_map = Map(Table(self, "Person")) self.person_id_map = Map(Table(self, "Person"), keys_func="ids_func", @@ -897,8 +883,6 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback): """ Post-transaction commit processing """ - if transaction.batch: - self.env.txn_checkpoint() # Reset callbacks if necessary if transaction.batch or not len(transaction): return