From 87b44b95cb315fa9a2e904cd4ee675611b9fbbd2 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 8 May 2006 18:47:42 +0000 Subject: [PATCH] (GrampsInMemDB._del_family): Remove obsolete code. svn: r6584 --- ChangeLog | 1 + src/GrampsDb/_GrampsInMemDB.py | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 16916a5a9..0e40e04fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ * src/GrampsDb/_ReadXML.py (start_childref): Typo. * src/GrampsDb/_GrampsInMemDB.py (load): Define self.full_name prior to calling open_undodb(). + (GrampsInMemDB._del_family): Remove obsolete code. 2006-05-07 Don Allingham * configure.in: set for 2.1.1 diff --git a/src/GrampsDb/_GrampsInMemDB.py b/src/GrampsDb/_GrampsInMemDB.py index 585492998..dae8c5da3 100644 --- a/src/GrampsDb/_GrampsInMemDB.py +++ b/src/GrampsDb/_GrampsInMemDB.py @@ -170,17 +170,7 @@ class GrampsInMemDB(GrampsDbBase): return vals - #FIXME: WHICH one to keep? def _del_person(self,handle): - #def remove_person(self,handle,transaction): - if self.readonly or not handle or str(handle) not in self.person_map: - return - person = self.get_person_from_handle(handle) - self.genderStats.uncount_person (person) - if transaction != None: - old_data = self.person_map.get(handle) - transaction.add(PERSON_KEY,handle,old_data) - self.emit('person-delete',([handle],)) del self.id_trans[person.get_gramps_id()] del self.person_map[handle]