remove no more needed code
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 8 Jun 2006 10:35:07 +0000 (10:35 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 8 Jun 2006 10:35:07 +0000 (10:35 +0000)
lib/python/enigma_python.i
main/enigma.cpp
mytest.py

index 06d844738e723498cca6fc5676ef901dadeccdec..8582de8655788c2dcb2f7dca9ebd625a5bff40b9 100644 (file)
@@ -93,7 +93,6 @@ extern void runMainloop();
 extern void quitMainloop(int exit_code);
 extern eApplication *getApplication();
 
-extern PSignal1<void,int> &keyPressedSignal();
 extern int getPrevAsciiCode();
 %}
 
@@ -259,8 +258,6 @@ int getPrevAsciiCode();
 void runMainloop();
 void quitMainloop(int exit_code);
 eApplication *getApplication();
-%immutable keyPressed;
-PSignal1<void,int> &keyPressedSignal();
 
 %{
 RESULT SwigFromPython(ePtr<gPixmap> &result, PyObject *obj)
index 96b4cef1c43e15a8874b2c696359295d06befdb2..0600062b4a9696e0f49b1cc4ed97808ede9cc5d1 100644 (file)
@@ -46,13 +46,6 @@ void object_dump()
 
 static eWidgetDesktop *wdsk, *lcddsk;
 
-PSignal1<void,int> keyPressed;
-
-PSignal1<void,int> &keyPressedSignal()
-{
-       return keyPressed;
-}
-
 static int prev_ascii_code;
 
 int getPrevAsciiCode()
@@ -73,8 +66,6 @@ void keyEvent(const eRCKey &key)
        }
        else
                ptr->keyPressed(0, key.code, key.flags);
-       if (!key.flags)
-               keyPressed(key.code);
 }
 
 /************************************************/
index 36a9382ac0a62ebb7e04a71cadf5208086c4999f..0ad6e24640f393cc7fc228620626c9638f67d88c 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -268,9 +268,6 @@ class Session:
                self.execBegin()
                return dlg
 
-       def keyEvent(self, code):
-               print "code " + str(code)
-
        def close(self, screen, *retval):
                if not self.in_exec:
                        print "close after exec!"
@@ -435,8 +432,6 @@ def runScreenTest():
        
        runNextScreen(session, screensToRun)
        
-       CONNECT(keyPressedSignal(), session.keyEvent)
-       
        vol = VolumeControl(session)
        power = PowerKey(session)