commit 08cfdbde2252a54fcfa98b3476c77c41c74e12ef
parent 4e7ee2eb82cb904a87e4e9f98c21e1f39ab84448
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 11 Sep 2013 16:42:13 -0700
surface: Remove unused shell_data/shell_destructor
Diffstat:
2 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/libswc/surface.c b/libswc/surface.c
@@ -309,9 +309,6 @@ static void surface_destroy(struct wl_resource * resource)
{
struct swc_surface * surface = wl_resource_get_user_data(resource);
- if (surface->shell_destructor)
- surface->shell_destructor(surface);
-
if (surface->class && surface->class->interface->remove)
surface->class->interface->remove(surface);
@@ -346,8 +343,6 @@ struct swc_surface * swc_surface_new(struct wl_client * client, uint32_t id)
surface->geometry.width = 0;
surface->geometry.height = 0;
surface->pending.commit = 0;
- surface->shell_data = NULL;
- surface->shell_destructor = NULL;
surface->class = NULL;
surface->class_state = NULL;
diff --git a/libswc/surface.h b/libswc/surface.h
@@ -91,15 +91,6 @@ struct swc_surface
struct swc_surface_state state;
- /* For usage by a shell implementation. */
- void * shell_data;
-
- /* Shells may want to use this destructor, guaranteed to run after all the
- * other destroy listeners, rather than a destroy listener if they want to
- * do something like change keyboard focus after the currently focused
- * surface is destroyed. */
- void (* shell_destructor)(struct swc_surface * surface);
-
struct
{
struct swc_surface_state state;