(GrampsInMemDB._del_family): Remove obsolete code.

svn: r6584
This commit is contained in:
Alex Roitman 2006-05-08 18:47:42 +00:00
parent 458ede1d8c
commit a19c4f2543
2 changed files with 1 additions and 10 deletions

View File

@ -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 <don@gramps-project.org>
* configure.in: set for 2.1.1

View File

@ -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]