author | zecke <zecke> | 2004-09-10 11:42:53 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-10 11:42:53 (UTC) |
commit | 6adde94c6ee292de5bc87a0c651fef69e8847d7e (patch) (side-by-side diff) | |
tree | 56ae2a840932bd50e16b59232a185e62d17c0843 /core/launcher/server.cpp | |
parent | 854e3af27ee7208bbb3620733a24f0214c0b118a (diff) | |
download | opie-6adde94c6ee292de5bc87a0c651fef69e8847d7e.zip opie-6adde94c6ee292de5bc87a0c651fef69e8847d7e.tar.gz opie-6adde94c6ee292de5bc87a0c651fef69e8847d7e.tar.bz2 |
Remove unused code and mark parameter as Q_UNUSED
-rw-r--r-- | core/launcher/server.cpp | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/core/launcher/server.cpp b/core/launcher/server.cpp index 950032d..5ae517b 100644 --- a/core/launcher/server.cpp +++ b/core/launcher/server.cpp @@ -193,36 +193,12 @@ Server::~Server() delete serverGui; #if 0 delete tsmMonitor; #endif } -static bool hasVisibleWindow(const QString& clientname, bool partial) -{ -#ifdef QWS - const QList<QWSWindow> &list = qwsServer->clientWindows(); - QWSWindow* w; - for (QListIterator<QWSWindow> it(list); (w=it.current()); ++it) { - if ( w->client()->identity() == clientname ) { - if ( partial && !w->isFullyObscured() ) - return TRUE; - if ( !partial && !w->isFullyObscured() && !w->isPartiallyObscured() ) { -# if QT_VERSION < 0x030000 - QRect mwr = qt_screen->mapToDevice(qt_maxWindowRect, - QSize(qt_screen->width(),qt_screen->height()) ); -# else - QRect mwr = qt_maxWindowRect; -# endif - if ( mwr.contains(w->requested().boundingRect()) ) - return TRUE; - } - } - } -#endif - return FALSE; -} void Server::activate(const ODeviceButton* button, bool held) { Global::terminateBuiltin("calibrate"); // No tr OQCopMessage om; if ( held ) { @@ -695,12 +671,14 @@ void Server::applicationLaunched(int, const QString &app) void Server::applicationTerminated(int pid, const QString &app) { serverGui->applicationStateChanged( app, ServerInterface::Terminated ); #if 0 tsmMonitor->applicationTerminated( pid ); +#else + Q_UNUSED( pid ) #endif } void Server::applicationConnected(const QString &app) { serverGui->applicationStateChanged( app, ServerInterface::Running ); |