From b43919746774d5fe2d7fcc8b9971eb57196361f7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 24 Mar 2019 23:15:01 -0400 Subject: [PATCH] Drop gdk_surface_get_root_origin It was not used. --- docs/reference/gdk/gdk4-sections.txt | 1 - gdk/gdksurface.c | 26 -------------------------- gdk/gdksurface.h | 4 ---- 3 files changed, 31 deletions(-) diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index 6537bb6ba8..b89564673d 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -260,7 +260,6 @@ gdk_surface_set_type_hint gdk_surface_get_type_hint gdk_surface_set_shadow_width gdk_surface_get_position -gdk_surface_get_root_origin gdk_surface_get_frame_extents gdk_surface_get_origin gdk_surface_get_device_position diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 3980bf26d9..4ec3d9c635 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -3078,32 +3078,6 @@ gdk_surface_set_transient_for (GdkSurface *surface, GDK_SURFACE_IMPL_GET_CLASS (surface->impl)->set_transient_for (surface, parent); } -/** - * gdk_surface_get_root_origin: - * @surface: a toplevel #GdkSurface - * @x: (out): return location for X position of surface frame - * @y: (out): return location for Y position of surface frame - * - * Obtains the top-left corner of the window manager frame in root - * surface coordinates. - * - **/ -void -gdk_surface_get_root_origin (GdkSurface *surface, - gint *x, - gint *y) -{ - GdkRectangle rect; - - gdk_surface_get_frame_extents (surface, &rect); - - if (x) - *x = rect.x; - - if (y) - *y = rect.y; -} - /** * gdk_surface_get_frame_extents: * @surface: a toplevel #GdkSurface diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h index 3249810156..3ad09cd974 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -597,10 +597,6 @@ gint gdk_surface_get_origin (GdkSurface *surface, gint *x, gint *y); GDK_AVAILABLE_IN_ALL -void gdk_surface_get_root_origin (GdkSurface *surface, - gint *x, - gint *y); -GDK_AVAILABLE_IN_ALL void gdk_surface_get_frame_extents (GdkSurface *surface, GdkRectangle *rect);