[mutter] wayland: Remove unused list of surfaces



commit 0bf5c831d548312b2e4c56c7b5279bae20da2a88
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Apr 22 18:18:57 2014 -0400

    wayland: Remove unused list of surfaces

 src/wayland/meta-wayland-private.h |    1 -
 src/wayland/meta-wayland-surface.c |    2 --
 src/wayland/meta-wayland.c         |   12 ++++--------
 3 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/src/wayland/meta-wayland-private.h b/src/wayland/meta-wayland-private.h
index d575e2f..76f2f06 100644
--- a/src/wayland/meta-wayland-private.h
+++ b/src/wayland/meta-wayland-private.h
@@ -79,7 +79,6 @@ struct _MetaWaylandCompositor
   ClutterActor *stage;
   GHashTable *outputs;
   GSource *wayland_event_source;
-  GList *surfaces;
   struct wl_list frame_callbacks;
 
   MetaXWaylandManager xwayland_manager;
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index f64f4fa..e9f68e7 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -554,8 +554,6 @@ wl_surface_destructor (struct wl_resource *resource)
   if (surface->window)
     destroy_window (surface);
 
-  compositor->surfaces = g_list_remove (compositor->surfaces, surface);
-
   surface_set_buffer (surface, NULL);
   pending_state_destroy (&surface->pending);
 
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 6ccb323..0cced23 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -205,14 +205,10 @@ meta_wayland_compositor_create_surface (struct wl_client *wayland_client,
 {
   MetaWaylandCompositor *compositor =
     wl_resource_get_user_data (wayland_compositor_resource);
-  MetaWaylandSurface *surface;
-
-  surface = meta_wayland_surface_create (compositor,
-                                        wayland_client, id,
-                                        MIN (META_WL_SURFACE_VERSION,
-                                             wl_resource_get_version (wayland_compositor_resource)));
-  
-  compositor->surfaces = g_list_prepend (compositor->surfaces, surface);
+
+  meta_wayland_surface_create (compositor, wayland_client, id,
+                               MIN (META_WL_SURFACE_VERSION,
+                                    wl_resource_get_version (wayland_compositor_resource)));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]