wayland: Remove a bunch of unused functions
authorBenjamin Otte <otte@redhat.com>
Wed, 30 May 2018 02:04:39 +0000 (04:04 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 18 Jun 2018 21:49:52 +0000 (23:49 +0200)
gdk/wayland/gdkdnd-wayland.c
gdk/wayland/gdkprivate-wayland.h

index b93a95bbc168e0a0b6397a0812db187855396f01..18adfa0c65c6eb458f664ceb2fafd04bfd1cc20a 100644 (file)
@@ -425,8 +425,7 @@ _gdk_wayland_surface_drag_begin (GdkSurface          *surface,
 
   context_wayland->dnd_surface = create_dnd_surface (gdk_surface_get_display (surface));
   context_wayland->dnd_wl_surface = gdk_wayland_surface_get_wl_surface (context_wayland->dnd_surface);
-  context_wayland->data_source =
-  gdk_wayland_selection_get_data_source (surface);
+  context_wayland->data_source = gdk_wayland_selection_get_data_source (surface);
 
   mimetypes = gdk_content_formats_get_mime_types (gdk_drag_context_get_formats (context), &n_mimetypes);
   for (i = 0; i < n_mimetypes; i++)
@@ -503,22 +502,3 @@ gdk_wayland_drag_context_lookup_by_data_source (struct wl_data_source *source)
   return NULL;
 }
 
-GdkDragContext *
-gdk_wayland_drag_context_lookup_by_source_surface (GdkSurface *surface)
-{
-  GList *l;
-
-  for (l = contexts; l; l = l->next)
-    {
-      if (surface == gdk_drag_context_get_source_surface (l->data))
-        return l->data;
-    }
-
-  return NULL;
-}
-
-struct wl_data_source *
-gdk_wayland_drag_context_get_data_source (GdkDragContext *context)
-{
-  return GDK_WAYLAND_DRAG_CONTEXT (context)->data_source;
-}
index 6c4471e145c04678e08f9a71ab7fb42ffe8a03c8..29da9f9a2b048e8c8dd06266d8a82b422ef791a1 100644 (file)
@@ -113,8 +113,6 @@ void _gdk_wayland_drag_context_set_source_surface (GdkDragContext *context,
                                                   GdkSurface      *surface);
 
 GdkDragContext * gdk_wayland_drag_context_lookup_by_data_source   (struct wl_data_source *source);
-GdkDragContext * gdk_wayland_drag_context_lookup_by_source_surface (GdkSurface *surface);
-struct wl_data_source * gdk_wayland_drag_context_get_data_source  (GdkDragContext *context);
 
 void _gdk_wayland_display_create_surface_impl (GdkDisplay    *display,
                                               GdkSurface     *surface,