From efa910e5b9a90671910c8649d96ea9c32fcb55a3 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 25 Oct 2016 22:09:19 +0100 Subject: [PATCH] Remove unused database method --- gramps/gen/db/generic.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/gramps/gen/db/generic.py b/gramps/gen/db/generic.py index e373b699f..f7c671c2e 100644 --- a/gramps/gen/db/generic.py +++ b/gramps/gen/db/generic.py @@ -1497,20 +1497,6 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback): self.emit('note-rebuild') self.emit('tag-rebuild') - def copy_from_db(self, db): - """ - A (possibily) implementation-specific method to get data from - db into this database. - """ - for key in db.get_table_func(): - cursor = db.get_table_func(key,"cursor_func") - class_ = db.get_table_func(key,"class_func") - for (handle, data) in cursor(): - map = getattr(self, "%s_map" % key.lower()) - if isinstance(handle, bytes): - handle = str(handle, "utf-8") - map[handle] = class_.create(data) - def get_from_name_and_handle(self, table_name, handle): """ Returns a gen.lib object (or None) given table_name and