gl: Fix compiler warning
authorSebastian Dröge <sebastian@centricular.com>
Sun, 31 May 2015 19:30:23 +0000 (21:30 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 31 May 2015 19:31:00 +0000 (21:31 +0200)
gstglwindow_wayland_egl.c:246:41: error: unused variable 'surface_listener' [-Werror,-Wunused-const-variable]
static const struct wl_surface_listener surface_listener = {
                                        ^

gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c

index a8e3422..3cf2cca 100644 (file)
@@ -232,23 +232,6 @@ static const struct wl_shell_surface_listener shell_surface_listener = {
 };
 
 static void
-surface_handle_enter (void *data, struct wl_surface *wl_surface,
-    struct wl_output *output)
-{
-}
-
-static void
-surface_handle_leave (void *data, struct wl_surface *wl_surface,
-    struct wl_output *output)
-{
-}
-
-static const struct wl_surface_listener surface_listener = {
-  surface_handle_enter,
-  surface_handle_leave
-};
-
-static void
 destroy_surfaces (GstGLWindowWaylandEGL * window_egl)
 {
   if (window_egl->window.subsurface) {