From c7c674b8c95b9e2aefc6c1f5dbd11b42b8f1545c Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 25 Jun 2016 19:16:22 +0100 Subject: [PATCH] 9547: Remove deprecated database methods --- gramps/gen/db/base.py | 24 ------------------- .../plugins/database/bsddb_support/write.py | 24 ------------------- 2 files changed, 48 deletions(-) diff --git a/gramps/gen/db/base.py b/gramps/gen/db/base.py index 5bf96b002..e3a51afa9 100644 --- a/gramps/gen/db/base.py +++ b/gramps/gen/db/base.py @@ -1490,12 +1490,6 @@ class DbWriteBase(DbReadBase): """ raise NotImplementedError - def add_family_event(self, event, transaction): - """ - Deprecated: Use add_event - """ - raise NotImplementedError - def add_note(self, obj, transaction, set_gid=True): """ Add a Note to the database, assigning internal IDs if they have @@ -1523,12 +1517,6 @@ class DbWriteBase(DbReadBase): """ raise NotImplementedError - def add_person_event(self, event, transaction): - """ - Deprecated: Use add_event - """ - raise NotImplementedError - def add_place(self, place, transaction, set_gid=True): """ Add a Place to the database, assigning internal IDs if they have @@ -1596,12 +1584,6 @@ class DbWriteBase(DbReadBase): """ raise NotImplementedError - def commit_family_event(self, event, transaction, change_time=None): - """ - Deprecated: Use commit_event - """ - raise NotImplementedError - def commit_media(self, obj, transaction, change_time=None): """ Commit the specified Media to the database, storing the changes @@ -1623,12 +1605,6 @@ class DbWriteBase(DbReadBase): """ raise NotImplementedError - def commit_personal_event(self, event, transaction, change_time=None): - """ - Deprecated: Use commit_event - """ - raise NotImplementedError - def commit_place(self, place, transaction, change_time=None): """ Commit the specified Place to the database, storing the changes as diff --git a/gramps/plugins/database/bsddb_support/write.py b/gramps/plugins/database/bsddb_support/write.py index 3d324bf82..759d2ee30 100644 --- a/gramps/plugins/database/bsddb_support/write.py +++ b/gramps/plugins/database/bsddb_support/write.py @@ -1662,18 +1662,6 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback): self.find_next_event_gramps_id if set_gid else None, self.commit_event) - def add_person_event(self, event, transaction): - """ - Deprecated: Use add_event - """ - return self.add_event(event, transaction) - - def add_family_event(self, event, transaction): - """ - Deprecated: Use add_event - """ - return self.add_event(event, transaction) - def add_place(self, place, transaction, set_gid=True): """ Add a Place to the database, assigning internal IDs if they have @@ -2073,18 +2061,6 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback): if attr.type.is_custom() and str(attr.type)] self.media_attributes.update(attr_list) - def commit_personal_event(self, event, transaction, change_time=None): - """ - Deprecated: Use commit_event - """ - self.commit_event(event, transaction, change_time) - - def commit_family_event(self, event, transaction, change_time=None): - """ - Deprecated: Use commit_event - """ - self.commit_event(event, transaction, change_time) - def commit_event(self, event, transaction, change_time=None): """ Commit the specified Event to the database, storing the changes as