From 3ff31d20af086f1069d50e39b9f0063664ec8933 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Tue, 7 Dec 2010 20:20:06 +0200 Subject: [PATCH] Removed the clearItemImages method from gui.Display - there is no need for it since we now use CachingImageList --- gui/display.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gui/display.py b/gui/display.py index e799e19a8..8f4c6b273 100644 --- a/gui/display.py +++ b/gui/display.py @@ -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):