From b9a98eaa3e7b1163a330a27c29066f0686a65466 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 1 Mar 2010 17:46:20 +0000 Subject: [PATCH] 3646: Remove redundant code svn: r14550 --- src/plugins/lib/libpersonview.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/plugins/lib/libpersonview.py b/src/plugins/lib/libpersonview.py index a6a844145..32d8ad54e 100644 --- a/src/plugins/lib/libpersonview.py +++ b/src/plugins/lib/libpersonview.py @@ -292,9 +292,6 @@ class BasePersonView(ListView): # delete the person from the database self.dbstate.db.delete_person_from_database(person, trans) - # remove the person from the list - self.remove_from_person_list(person) - # commit the transaction self.dbstate.db.transaction_commit(trans, active_name) @@ -304,17 +301,6 @@ class BasePersonView(ListView): history.back() self.uistate.set_busy_cursor(False) - def remove_from_person_list(self, person): - """Remove the selected person from the list. A person object is - expected, not an ID""" - node = self.model.get_node(person.get_handle()) - path = self.model.on_get_path(node) - (col, row) = path - if row > 0: - self.selection.select_path((col, row)) - elif row == 0 and self.model.on_get_iter(path): - self.selection.select_path(path) - def dummy_report(self, obj): """ For the xml UI definition of popup to work, the submenu Quick Report must have an entry in the xml