diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-05-01 11:06:33 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-05-05 15:04:01 -0400 |
commit | 86f197893a7c7be07eb3aba7a88b54ca907c0f6b (patch) | |
tree | f335826628b4012f885e7be179c7d6976f23ab14 | |
parent | ac26fc3be48806f618da2a17a4ff8cda4b07f1e5 (diff) | |
download | gtk+-86f197893a7c7be07eb3aba7a88b54ca907c0f6b.tar.gz |
wayland: drop a useless list
We were keeping all the event sources in a list, only to remove
them at the end of their life. Not useful.
-rw-r--r-- | gdk/wayland/gdkeventsource.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdk/wayland/gdkeventsource.c b/gdk/wayland/gdkeventsource.c index bb22e00195..f04281cb9a 100644 --- a/gdk/wayland/gdkeventsource.c +++ b/gdk/wayland/gdkeventsource.c @@ -30,8 +30,6 @@ typedef struct _GdkWaylandEventSource { GdkDisplay *display; } GdkWaylandEventSource; -static GList *event_sources = NULL; - static gboolean gdk_event_source_prepare (GSource *base, gint *timeout) @@ -46,7 +44,8 @@ gdk_event_source_prepare (GSource *base, /* We have to add/remove the GPollFD if we want to update our * poll event mask dynamically. Instead, let's just flush all - * write on idle instead, which is what this amounts to. */ + * write on idle instead, which is what this amounts to. + */ if (_gdk_event_queue_find_first (source->display) != NULL) return TRUE; @@ -100,7 +99,6 @@ gdk_event_source_dispatch (GSource *base, static void gdk_event_source_finalize (GSource *source) { - event_sources = g_list_remove (event_sources, source); } static GSourceFuncs wl_glib_source_funcs = { @@ -147,8 +145,6 @@ _gdk_wayland_display_event_source_new (GdkDisplay *display) g_source_set_can_recurse (source, TRUE); g_source_attach (source, NULL); - event_sources = g_list_prepend (event_sources, source); - return source; } |