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