Remove redundant variable
svn: r18705
This commit is contained in:
parent
fea6a2c9e3
commit
6ddb6dbcd1
@ -502,7 +502,6 @@ class PersonTreeModel(PeopleBaseModel, TreeBaseModel):
|
|||||||
Unset all elements that can prevent garbage collection
|
Unset all elements that can prevent garbage collection
|
||||||
"""
|
"""
|
||||||
PeopleBaseModel.destroy(self)
|
PeopleBaseModel.destroy(self)
|
||||||
self.hmap = None
|
|
||||||
self.number_items = None
|
self.number_items = None
|
||||||
TreeBaseModel.destroy(self)
|
TreeBaseModel.destroy(self)
|
||||||
|
|
||||||
@ -510,7 +509,6 @@ class PersonTreeModel(PeopleBaseModel, TreeBaseModel):
|
|||||||
"""See TreeBaseModel, we also set some extra lru caches
|
"""See TreeBaseModel, we also set some extra lru caches
|
||||||
"""
|
"""
|
||||||
self.number_items = self.db.get_number_of_people
|
self.number_items = self.db.get_number_of_people
|
||||||
self.hmap = [self.column_header] + [None]*len(self.smap)
|
|
||||||
|
|
||||||
def clear_cache(self, handle=None):
|
def clear_cache(self, handle=None):
|
||||||
""" Clear the LRU cache
|
""" Clear the LRU cache
|
||||||
|
@ -288,7 +288,6 @@ class PlaceTreeModel(PlaceBaseModel, TreeBaseModel):
|
|||||||
Unset all elements that can prevent garbage collection
|
Unset all elements that can prevent garbage collection
|
||||||
"""
|
"""
|
||||||
PlaceBaseModel.destroy(self)
|
PlaceBaseModel.destroy(self)
|
||||||
self.hmap = None
|
|
||||||
self.number_items = None
|
self.number_items = None
|
||||||
TreeBaseModel.destroy(self)
|
TreeBaseModel.destroy(self)
|
||||||
|
|
||||||
@ -297,7 +296,6 @@ class PlaceTreeModel(PlaceBaseModel, TreeBaseModel):
|
|||||||
PlaceBaseModel
|
PlaceBaseModel
|
||||||
"""
|
"""
|
||||||
self.number_items = self.db.get_number_of_places
|
self.number_items = self.db.get_number_of_places
|
||||||
self.hmap = [self.column_header] + [None]*14
|
|
||||||
|
|
||||||
def get_tree_levels(self):
|
def get_tree_levels(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user