From: Andreas Monzner Date: Thu, 8 Jun 2006 10:35:07 +0000 (+0000) Subject: remove no more needed code X-Git-Tag: 2.6.0~3337 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/859aa7a92d7fc7775370bdb5025419e33971d6d8 remove no more needed code --- diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 06d84473..8582de86 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -93,7 +93,6 @@ extern void runMainloop(); extern void quitMainloop(int exit_code); extern eApplication *getApplication(); -extern PSignal1 &keyPressedSignal(); extern int getPrevAsciiCode(); %} @@ -259,8 +258,6 @@ int getPrevAsciiCode(); void runMainloop(); void quitMainloop(int exit_code); eApplication *getApplication(); -%immutable keyPressed; -PSignal1 &keyPressedSignal(); %{ RESULT SwigFromPython(ePtr &result, PyObject *obj) diff --git a/main/enigma.cpp b/main/enigma.cpp index 96b4cef1..0600062b 100644 --- a/main/enigma.cpp +++ b/main/enigma.cpp @@ -46,13 +46,6 @@ void object_dump() static eWidgetDesktop *wdsk, *lcddsk; -PSignal1 keyPressed; - -PSignal1 &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); } /************************************************/ diff --git a/mytest.py b/mytest.py index 36a9382a..0ad6e246 100644 --- 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)