From: Benjamin Otte Date: Wed, 30 May 2018 02:04:39 +0000 (+0200) Subject: wayland: Remove a bunch of unused functions X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~104 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=81e1dc9a66618565c0a61005516db254c27985de;p=gtk4.git wayland: Remove a bunch of unused functions --- diff --git a/gdk/wayland/gdkdnd-wayland.c b/gdk/wayland/gdkdnd-wayland.c index b93a95bbc1..18adfa0c65 100644 --- a/gdk/wayland/gdkdnd-wayland.c +++ b/gdk/wayland/gdkdnd-wayland.c @@ -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; -} diff --git a/gdk/wayland/gdkprivate-wayland.h b/gdk/wayland/gdkprivate-wayland.h index 6c4471e145..29da9f9a2b 100644 --- a/gdk/wayland/gdkprivate-wayland.h +++ b/gdk/wayland/gdkprivate-wayland.h @@ -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,