From 1a5fb513960692c3ca4a9581ce1014abd2315373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sun, 6 Aug 2023 12:10:21 +0200 Subject: [PATCH] Remove unused meta_window_x11_has_active_sync_alarms Never used AFAICT. Part-of: --- src/x11/window-x11.c | 13 ------------- src/x11/window-x11.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c index 0209c7c52..3f34f03a1 100644 --- a/src/x11/window-x11.c +++ b/src/x11/window-x11.c @@ -4282,19 +4282,6 @@ meta_window_x11_get_sync_counter (MetaWindow *window) return &priv->sync_counter; } -gboolean -meta_window_x11_has_active_sync_alarms (MetaWindow *window) -{ - MetaWindowX11 *window_x11 = META_WINDOW_X11 (window); - MetaWindowX11Private *priv = meta_window_x11_get_instance_private (window_x11); - - if (window->frame && - meta_sync_counter_has_sync_alarm (meta_frame_get_sync_counter (window->frame))) - return TRUE; - - return meta_sync_counter_has_sync_alarm (&priv->sync_counter); -} - gboolean meta_window_x11_is_awaiting_sync_response (MetaWindow *window) { diff --git a/src/x11/window-x11.h b/src/x11/window-x11.h index 63d06cd9c..4977aa9c0 100644 --- a/src/x11/window-x11.h +++ b/src/x11/window-x11.h @@ -104,8 +104,6 @@ gboolean meta_window_x11_can_unredirect (MetaWindowX11 *window_x11); MetaSyncCounter * meta_window_x11_get_sync_counter (MetaWindow *window); -gboolean meta_window_x11_has_active_sync_alarms (MetaWindow *window); - gboolean meta_window_x11_is_awaiting_sync_response (MetaWindow *window); void meta_window_x11_check_update_resize (MetaWindow *window);