From 0dd170264db53d5a72df383a7b29ee4d592c581d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 21 Feb 2023 14:08:20 +0100 Subject: [PATCH] window-wayland: Remove unused API Part-of: --- src/wayland/meta-window-wayland.c | 19 ------------------- src/wayland/meta-window-wayland.h | 5 ----- 2 files changed, 24 deletions(-) diff --git a/src/wayland/meta-window-wayland.c b/src/wayland/meta-window-wayland.c index fb907b2f9..cc655d10d 100644 --- a/src/wayland/meta-window-wayland.c +++ b/src/wayland/meta-window-wayland.c @@ -1242,25 +1242,6 @@ meta_window_wayland_finish_move_resize (MetaWindow *window, meta_window_move_resize_internal (window, flags, gravity, rect); } -void -meta_window_wayland_place_relative_to (MetaWindow *window, - MetaWindow *other, - int x, - int y) -{ - int geometry_scale; - - /* If there is no monitor, we can't position the window reliably. */ - if (!other->monitor) - return; - - geometry_scale = meta_window_wayland_get_geometry_scale (other); - meta_window_move_frame (window, FALSE, - other->buffer_rect.x + (x * geometry_scale), - other->buffer_rect.y + (y * geometry_scale)); - window->placed = TRUE; -} - void meta_window_place_with_placement_rule (MetaWindow *window, MetaPlacementRule *placement_rule) diff --git a/src/wayland/meta-window-wayland.h b/src/wayland/meta-window-wayland.h index e781065f4..5fd841d39 100644 --- a/src/wayland/meta-window-wayland.h +++ b/src/wayland/meta-window-wayland.h @@ -46,11 +46,6 @@ void meta_window_wayland_finish_move_resize (MetaWindow *window, int meta_window_wayland_get_geometry_scale (MetaWindow *window); -void meta_window_wayland_place_relative_to (MetaWindow *window, - MetaWindow *other, - int x, - int y); - void meta_window_place_with_placement_rule (MetaWindow *window, MetaPlacementRule *placement_rule);