gl/wayland: remove dead event source code

This commit is contained in:
Matthew Waters 2015-05-22 13:12:09 +10:00 committed by Tim-Philipp Müller
parent 9f704d7c2d
commit 4e58ec83e0

View file

@ -50,7 +50,6 @@ static gboolean
wayland_event_source_prepare (GSource * base, gint * timeout) wayland_event_source_prepare (GSource * base, gint * timeout)
{ {
WaylandEventSource *source = (WaylandEventSource *) base; WaylandEventSource *source = (WaylandEventSource *) base;
gboolean retval;
*timeout = -1; *timeout = -1;
@ -59,9 +58,7 @@ wayland_event_source_prepare (GSource * base, gint * timeout)
* writes on idle */ * writes on idle */
wl_display_flush (source->display); wl_display_flush (source->display);
retval = FALSE; //clutter_events_pending (); return FALSE;
return retval;
} }
static gboolean static gboolean
@ -70,7 +67,7 @@ wayland_event_source_check (GSource * base)
WaylandEventSource *source = (WaylandEventSource *) base; WaylandEventSource *source = (WaylandEventSource *) base;
gboolean retval; gboolean retval;
retval = source->pfd.revents; // || clutter_events_pending(); retval = source->pfd.revents;
return retval; return retval;
} }
@ -80,7 +77,6 @@ wayland_event_source_dispatch (GSource * base,
GSourceFunc callback, gpointer data) GSourceFunc callback, gpointer data)
{ {
WaylandEventSource *source = (WaylandEventSource *) base; WaylandEventSource *source = (WaylandEventSource *) base;
// ClutterEvent *event;
if (source->pfd.revents) { if (source->pfd.revents) {
wl_display_roundtrip (source->display); wl_display_roundtrip (source->display);
@ -90,15 +86,6 @@ wayland_event_source_dispatch (GSource * base,
if (callback) if (callback)
callback (data); callback (data);
#if 0
event = clutter_event_get ();
if (event) {
/* forward the event into clutter for emission etc. */
clutter_do_event (event);
clutter_event_free (event);
}
#endif
return TRUE; return TRUE;
} }