From 5fa4ea36d6db3f3e028eb65d93c54c12049b07f9 Mon Sep 17 00:00:00 2001 From: Alan Griffiths Date: Thu, 16 Nov 2023 14:58:53 +0000 Subject: [PATCH] Drop dead code --- src/server/frontend_wayland/window_wl_surface_role.cpp | 9 --------- src/server/frontend_wayland/window_wl_surface_role.h | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/server/frontend_wayland/window_wl_surface_role.cpp b/src/server/frontend_wayland/window_wl_surface_role.cpp index 8ce33965ccc..a42493de753 100644 --- a/src/server/frontend_wayland/window_wl_surface_role.cpp +++ b/src/server/frontend_wayland/window_wl_surface_role.cpp @@ -235,15 +235,6 @@ void mf::WindowWlSurfaceRole::set_fullscreen(std::optional } } -void mf::WindowWlSurfaceRole::set_server_side_decorated(bool server_side_decorated) -{ - spec().server_side_decorated = server_side_decorated; - if (weak_scene_surface.lock()) - { - log_warning("Changing server_side_decorated property after surface created not yet possible"); - } -} - void mir::frontend::WindowWlSurfaceRole::set_type(MirWindowType type) { spec().type = type; diff --git a/src/server/frontend_wayland/window_wl_surface_role.h b/src/server/frontend_wayland/window_wl_surface_role.h index ab6093fe540..7174c386a00 100644 --- a/src/server/frontend_wayland/window_wl_surface_role.h +++ b/src/server/frontend_wayland/window_wl_surface_role.h @@ -90,7 +90,7 @@ class WindowWlSurfaceRole void set_max_size(int32_t width, int32_t height); void set_min_size(int32_t width, int32_t height); void set_fullscreen(std::optional const& output); - void set_server_side_decorated(bool server_side_decorated); + void set_type(MirWindowType type); void add_state_now(MirWindowState state);