From 6ddb6dbcd1ac2ca38f7d6d82ddf17e4cad070e77 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 5 Jan 2012 18:54:43 +0000 Subject: [PATCH] Remove redundant variable svn: r18705 --- src/gui/views/treemodels/peoplemodel.py | 2 -- src/gui/views/treemodels/placemodel.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/gui/views/treemodels/peoplemodel.py b/src/gui/views/treemodels/peoplemodel.py index 7e5537c64..faeeabd01 100644 --- a/src/gui/views/treemodels/peoplemodel.py +++ b/src/gui/views/treemodels/peoplemodel.py @@ -502,7 +502,6 @@ class PersonTreeModel(PeopleBaseModel, TreeBaseModel): Unset all elements that can prevent garbage collection """ PeopleBaseModel.destroy(self) - self.hmap = None self.number_items = None TreeBaseModel.destroy(self) @@ -510,7 +509,6 @@ class PersonTreeModel(PeopleBaseModel, TreeBaseModel): """See TreeBaseModel, we also set some extra lru caches """ self.number_items = self.db.get_number_of_people - self.hmap = [self.column_header] + [None]*len(self.smap) def clear_cache(self, handle=None): """ Clear the LRU cache diff --git a/src/gui/views/treemodels/placemodel.py b/src/gui/views/treemodels/placemodel.py index 6bcbc78be..43c44593b 100644 --- a/src/gui/views/treemodels/placemodel.py +++ b/src/gui/views/treemodels/placemodel.py @@ -288,7 +288,6 @@ class PlaceTreeModel(PlaceBaseModel, TreeBaseModel): Unset all elements that can prevent garbage collection """ PlaceBaseModel.destroy(self) - self.hmap = None self.number_items = None TreeBaseModel.destroy(self) @@ -297,7 +296,6 @@ class PlaceTreeModel(PlaceBaseModel, TreeBaseModel): PlaceBaseModel """ self.number_items = self.db.get_number_of_places - self.hmap = [self.column_header] + [None]*14 def get_tree_levels(self): """