From d1e32808212196e661d27b232676996ef9c7d3cd Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 17 Oct 2016 19:36:23 +0100 Subject: [PATCH] Remove redundant table maps --- gramps/gen/db/generic.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/gramps/gen/db/generic.py b/gramps/gen/db/generic.py index 6a1abcf48..62d638156 100644 --- a/gramps/gen/db/generic.py +++ b/gramps/gen/db/generic.py @@ -670,50 +670,14 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback): self.rmap_index = 0 self.nmap_index = 0 self.person_map = Map(Table(self, "Person")) - self.person_id_map = Map(Table(self, "Person"), - keys_func="ids_func", - contains_func="has_gramps_id_func", - raw_func="raw_id_func") self.family_map = Map(Table(self, "Family")) - self.family_id_map = Map(Table(self, "Family"), - keys_func="ids_func", - contains_func="has_gramps_id_func", - raw_func="raw_id_func") self.place_map = Map(Table(self, "Place")) - self.place_id_map = Map(Table(self, "Place"), - keys_func="ids_func", - contains_func="has_gramps_id_func", - raw_func="raw_id_func") self.citation_map = Map(Table(self, "Citation")) - self.citation_id_map = Map(Table(self, "Citation"), - keys_func="ids_func", - contains_func="has_gramps_id_func", - raw_func="raw_id_func") self.source_map = Map(Table(self, "Source")) - self.source_id_map = Map(Table(self, "Source"), - keys_func="ids_func", - contains_func="has_gramps_id_func", - raw_func="raw_id_func") self.repository_map = Map(Table(self, "Repository")) - self.repository_id_map = Map(Table(self, "Repository"), - keys_func="ids_func", - contains_func="has_gramps_id_func", - raw_func="raw_id_func") self.note_map = Map(Table(self, "Note")) - self.note_id_map = Map(Table(self, "Note"), - keys_func="ids_func", - contains_func="has_gramps_id_func", - raw_func="raw_id_func") self.media_map = Map(Table(self, "Media")) - self.media_id_map = Map(Table(self, "Media"), - keys_func="ids_func", - contains_func="has_gramps_id_func", - raw_func="raw_id_func") self.event_map = Map(Table(self, "Event")) - self.event_id_map = Map(Table(self, "Event"), - keys_func="ids_func", - contains_func="has_gramps_id_func", - raw_func="raw_id_func") self.tag_map = Map(Table(self, "Tag")) self.metadata = Map(Table(self, "Metadata", funcs={"cursor_func": lambda: MetaCursor()})) self.undo_callback = None