[gtk/present-toplevel-2: 154/178] wayland: Drop some unused surface vfuncs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 154/178] wayland: Drop some unused surface vfuncs
- Date: Tue, 10 Mar 2020 01:22:53 +0000 (UTC)
commit af853fc7606aca7f212e9889ce992e6c87ec475d
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 9 10:35:30 2020 -0700
wayland: Drop some unused surface vfuncs
show, withdraw, raise, lower are all unused in the frontend.
gdk/wayland/gdksurface-wayland.c | 28 ----------------------------
1 file changed, 28 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index 3540e26ed1..d5fdca6520 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -2544,30 +2544,6 @@ gdk_wayland_surface_hide (GdkSurface *surface)
_gdk_surface_clear_update_area (surface);
}
-static void
-gdk_wayland_surface_withdraw (GdkSurface *surface)
-{
- if (!surface->destroyed)
- {
- if (GDK_SURFACE_IS_MAPPED (surface))
- gdk_synthesize_surface_state (surface, 0, GDK_SURFACE_STATE_WITHDRAWN);
-
- g_assert (!GDK_SURFACE_IS_MAPPED (surface));
-
- gdk_wayland_surface_hide_surface (surface);
- }
-}
-
-static void
-gdk_wayland_surface_raise (GdkSurface *surface)
-{
-}
-
-static void
-gdk_wayland_surface_lower (GdkSurface *surface)
-{
-}
-
static void
gdk_wayland_surface_move_resize (GdkSurface *surface,
gint x,
@@ -3809,11 +3785,7 @@ gdk_wayland_surface_class_init (GdkWaylandSurfaceClass *klass)
object_class->dispose = gdk_wayland_surface_dispose;
object_class->finalize = gdk_wayland_surface_finalize;
- impl_class->show = gdk_wayland_surface_show;
impl_class->hide = gdk_wayland_surface_hide;
- impl_class->withdraw = gdk_wayland_surface_withdraw;
- impl_class->raise = gdk_wayland_surface_raise;
- impl_class->lower = gdk_wayland_surface_lower;
impl_class->toplevel_resize = gdk_wayland_surface_toplevel_resize;
impl_class->present_popup = gdk_wayland_surface_present_popup;
impl_class->get_geometry = gdk_wayland_surface_get_geometry;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]