[gtk+/gtk-3-20] x11: drop a useless list
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] x11: drop a useless list
- Date: Thu, 5 May 2016 19:23:09 +0000 (UTC)
commit 518023df56ebae0132f9f5cf2e1fca3a2cb8c5a8
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 1 11:09:05 2016 -0400
x11: 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.
gdk/x11/gdkeventsource.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gdk/x11/gdkeventsource.c b/gdk/x11/gdkeventsource.c
index 11929c6..774d10c 100644
--- a/gdk/x11/gdkeventsource.c
+++ b/gdk/x11/gdkeventsource.c
@@ -51,8 +51,6 @@ static GSourceFuncs event_funcs = {
gdk_event_source_finalize
};
-static GList *event_sources = NULL;
-
static gint
gdk_event_apply_filters (XEvent *xevent,
GdkEvent *event,
@@ -383,8 +381,6 @@ gdk_event_source_finalize (GSource *source)
g_list_free (event_source->translators);
event_source->translators = NULL;
-
- event_sources = g_list_remove (event_sources, source);
}
GSource *
@@ -415,8 +411,6 @@ gdk_x11_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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]