3646: Remove redundant code
svn: r14549
This commit is contained in:
		| @@ -292,9 +292,6 @@ class BasePersonView(ListView): | |||||||
|         # delete the person from the database |         # delete the person from the database | ||||||
|         self.dbstate.db.delete_person_from_database(person, trans) |         self.dbstate.db.delete_person_from_database(person, trans) | ||||||
|  |  | ||||||
|         # remove the person from the list |  | ||||||
|         self.remove_from_person_list(person) |  | ||||||
|  |  | ||||||
|         # commit the transaction |         # commit the transaction | ||||||
|         self.dbstate.db.transaction_commit(trans, active_name) |         self.dbstate.db.transaction_commit(trans, active_name) | ||||||
|  |  | ||||||
| @@ -304,17 +301,6 @@ class BasePersonView(ListView): | |||||||
|         history.back() |         history.back() | ||||||
|         self.uistate.set_busy_cursor(False) |         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): |     def dummy_report(self, obj): | ||||||
|         """ For the xml UI definition of popup to work, the submenu  |         """ For the xml UI definition of popup to work, the submenu  | ||||||
|             Quick Report must have an entry in the xml |             Quick Report must have an entry in the xml | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user