From 6adde94c6ee292de5bc87a0c651fef69e8847d7e Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 10 Sep 2004 11:42:53 +0000 Subject: Remove unused code and mark parameter as Q_UNUSED --- (limited to 'core/launcher/server.cpp') 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 @@ -196,30 +196,6 @@ Server::~Server() #endif } -static bool hasVisibleWindow(const QString& clientname, bool partial) -{ -#ifdef QWS - const QList &list = qwsServer->clientWindows(); - QWSWindow* w; - for (QListIterator 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) { @@ -698,6 +674,8 @@ void Server::applicationTerminated(int pid, const QString &app) serverGui->applicationStateChanged( app, ServerInterface::Terminated ); #if 0 tsmMonitor->applicationTerminated( pid ); +#else + Q_UNUSED( pid ) #endif } -- cgit v0.9.0.2