author | zecke <zecke> | 2004-09-10 11:42:53 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-10 11:42:53 (UTC) |
commit | 6adde94c6ee292de5bc87a0c651fef69e8847d7e (patch) (unidiff) | |
tree | 56ae2a840932bd50e16b59232a185e62d17c0843 | |
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/launcherview.cpp | 2 | ||||
-rw-r--r-- | core/launcher/server.cpp | 26 | ||||
-rw-r--r-- | core/launcher/serverapp.cpp | 4 |
3 files changed, 6 insertions, 26 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index 0d0f2cb..cd9c14b 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -446,4 +446,6 @@ void LauncherItem::paintAnimatedIcon( QPainter *p ) | |||
446 | #ifdef USE_ANIMATED_BUSY_ICON_OVERLAY | 446 | #ifdef USE_ANIMATED_BUSY_ICON_OVERLAY |
447 | p2.drawPixmap( x1, y1 + bounceY, liv->busyPixmap(), w * pic, 0, w, h ); | 447 | p2.drawPixmap( x1, y1 + bounceY, liv->busyPixmap(), w * pic, 0, w, h ); |
448 | #else | ||
449 | Q_UNUSED( pic ) | ||
448 | #endif | 450 | #endif |
449 | p->drawPixmap( x1, y1, dblBuf ); | 451 | p->drawPixmap( x1, y1, dblBuf ); |
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 | |||
@@ -197,28 +197,4 @@ Server::~Server() | |||
197 | } | 197 | } |
198 | 198 | ||
199 | static bool hasVisibleWindow(const QString& clientname, bool partial) | ||
200 | { | ||
201 | #ifdef QWS | ||
202 | const QList<QWSWindow> &list = qwsServer->clientWindows(); | ||
203 | QWSWindow* w; | ||
204 | for (QListIterator<QWSWindow> it(list); (w=it.current()); ++it) { | ||
205 | if ( w->client()->identity() == clientname ) { | ||
206 | if ( partial && !w->isFullyObscured() ) | ||
207 | return TRUE; | ||
208 | if ( !partial && !w->isFullyObscured() && !w->isPartiallyObscured() ) { | ||
209 | # if QT_VERSION < 0x030000 | ||
210 | QRect mwr = qt_screen->mapToDevice(qt_maxWindowRect, | ||
211 | QSize(qt_screen->width(),qt_screen->height()) ); | ||
212 | # else | ||
213 | QRect mwr = qt_maxWindowRect; | ||
214 | # endif | ||
215 | if ( mwr.contains(w->requested().boundingRect()) ) | ||
216 | return TRUE; | ||
217 | } | ||
218 | } | ||
219 | } | ||
220 | #endif | ||
221 | return FALSE; | ||
222 | } | ||
223 | 199 | ||
224 | void Server::activate(const ODeviceButton* button, bool held) | 200 | void Server::activate(const ODeviceButton* button, bool held) |
@@ -699,4 +675,6 @@ void Server::applicationTerminated(int pid, const QString &app) | |||
699 | #if 0 | 675 | #if 0 |
700 | tsmMonitor->applicationTerminated( pid ); | 676 | tsmMonitor->applicationTerminated( pid ); |
677 | #else | ||
678 | Q_UNUSED( pid ) | ||
701 | #endif | 679 | #endif |
702 | } | 680 | } |
diff --git a/core/launcher/serverapp.cpp b/core/launcher/serverapp.cpp index a2302d8..66cc788 100644 --- a/core/launcher/serverapp.cpp +++ b/core/launcher/serverapp.cpp | |||
@@ -358,6 +358,6 @@ ServerApplication::ServerApplication( int& argc, char **argv, Type t ) | |||
358 | grabKeyboard(); | 358 | grabKeyboard(); |
359 | 359 | ||
360 | /* make sure the event filter is installed */ | 360 | /* make sure the event filter is installed */ /* std::limits<short>::max() when you've stdc++ */ |
361 | const ODeviceButton* but = ODevice::inst()->buttonForKeycode( -1 ); | 361 | const ODeviceButton* but = ODevice::inst()->buttonForKeycode( SHRT_MAX ); |
362 | Q_CONST_UNUSED( but ) | 362 | Q_CONST_UNUSED( but ) |
363 | } | 363 | } |