remove unneeded code
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 21 Sep 2007 20:45:28 +0000 (20:45 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 21 Sep 2007 20:45:28 +0000 (20:45 +0000)
lib/python/Components/GUISkin.py

index b7cfb43..39499c7 100644 (file)
@@ -1,7 +1,6 @@
 from GUIComponent import GUIComponent
 from skin import applyAllAttributes
 from Tools.CList import CList
-from Sources.Source import Source
 
 class GUISkin:
        __module__ = __name__
@@ -36,14 +35,9 @@ class GUISkin:
                                f()
 
        def deleteGUIScreen(self):
-               seenFakeSource = False
                for (name, val) in self.items():
-                       if name == "fake" and isinstance(val, Source):
-                               seenFakeSource = True
                        if isinstance(val, GUIComponent):
                                val.GUIdelete()
-               if seenFakeSource:
-                       del self["fake"]
 
        def close(self):
                self.deleteGUIScreen()