Removed the clearItemImages method from gui.Display - there is no need for it since we now use CachingImageList

This commit is contained in:
HomeWorld
2010-12-07 20:20:06 +02:00
parent cb5d89c35e
commit 3ff31d20af

View File

@@ -114,10 +114,6 @@ class Display(wx.ListCtrl):
self.SetColumnWidth(column,self.columnsMinWidth[column])
colItem.resized = True
def clearItemImages(self):
for i in xrange(self.imageList.ImageCount - 1, self.imageListBase, -1):
self.imageList.Remove(i)
def populate(self, stuff):
selection = []
@@ -128,7 +124,6 @@ class Display(wx.ListCtrl):
sel = self.GetNextSelected(sel)
self.DeleteAllItems()
self.clearItemImages()
if stuff is not None:
for id, st in enumerate(stuff):