wayland: Remove unused list of surfaces

This commit is contained in:
Jasper St. Pierre 2014-04-22 18:18:57 -04:00
parent 777a6d4570
commit 0bf5c831d5
3 changed files with 3 additions and 10 deletions

View File

@ -79,7 +79,6 @@ struct _MetaWaylandCompositor
ClutterActor *stage;
GHashTable *outputs;
GSource *wayland_event_source;
GList *surfaces;
struct wl_list frame_callbacks;
MetaXWaylandManager xwayland_manager;

View File

@ -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);

View File

@ -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