Get rid of dummy source update functions and debug output.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 7 Mar 2012 09:12:26 +0000 (10:12 +0100)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 7 Mar 2012 09:18:57 +0000 (10:18 +0100)
The source update callbacks are unnecessary since change
d224714afd087cc73d8 in wayland.

Change-Id: Iac2266621b8739464077d9aa8f9292e06e9b4b35
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/compositor/wayland_wrapper/wlcompositor.cpp
src/plugins/platforms/wayland/qwaylanddisplay.cpp
tests/auto/compositor/mockclient.cpp

index 6cd9a3d..10cf3a8 100644 (file)
@@ -135,7 +135,6 @@ Compositor::Compositor(WaylandCompositor *qt_compositor)
     , m_retainNotify(0)
 {
     compositor = this;
-    qDebug() << "Compositor instance is" << this;
 
 #if defined (QT_COMPOSITOR_WAYLAND_GL)
     QWindow *window = qt_compositor->window();
index 01af936..a96d726 100644 (file)
@@ -106,11 +106,6 @@ void QWaylandDisplay::setLastKeyboardFocusInputDevice(QWaylandInputDevice *devic
 
 static QWaylandDisplay *display = 0;
 
-static int dummyUpdate(uint32_t, void *)
-{
-    return 0;
-}
-
 QWaylandDisplay::QWaylandDisplay(void)
     : mLastKeyboardFocusInputDevice(0)
     , mDndSelectionHandler(0)
@@ -130,7 +125,7 @@ QWaylandDisplay::QWaylandDisplay(void)
 
     wl_display_add_global_listener(mDisplay, QWaylandDisplay::displayHandleGlobal, this);
 
-    mFd = wl_display_get_fd(mDisplay, dummyUpdate, 0);
+    mFd = wl_display_get_fd(mDisplay, 0, 0);
 
 #ifdef QTWAYLAND_EXPERIMENTAL_THREAD_SUPPORT
     mWritableNotificationFd = wl_display_get_write_notification_fd(mDisplay);
index f47f253..5dabfcd 100644 (file)
@@ -63,7 +63,7 @@ MockClient::MockClient()
 
     wl_display_add_global_listener(display, handleGlobal, this);
 
-    fd = wl_display_get_fd(display, sourceUpdate, 0);
+    fd = wl_display_get_fd(display, 0, 0);
 
     QSocketNotifier *readNotifier = new QSocketNotifier(fd, QSocketNotifier::Read, this);
     connect(readNotifier, SIGNAL(activated(int)), this, SLOT(readEvents()));
@@ -96,11 +96,6 @@ void MockClient::handleGlobal(wl_display *, uint32_t id, const char *interface,
     resolve(data)->handleGlobal(id, QByteArray(interface));
 }
 
-int MockClient::sourceUpdate(uint32_t, void *)
-{
-    return 0;
-}
-
 void MockClient::outputGeometryEvent(void *data, wl_output *,
                                      int32_t x, int32_t y,
                                      int32_t width, int32_t height,