From e28b15b41ae75191411ab52075ee3822baebf264 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Mon, 12 Sep 2022 19:47:25 +0200 Subject: [PATCH] ringer: Remove deprecated CuiCallStates They haven't been used since 4bc8e82ff63d6e8f3f758f8acde2c620a691d584 and could probably have been removed sooner. --- src/calls-ringer.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/calls-ringer.c b/src/calls-ringer.c index 40052c2..05ade8e 100644 --- a/src/calls-ringer.c +++ b/src/calls-ringer.c @@ -293,15 +293,7 @@ restart (CallsRinger *self, static inline gboolean is_ring_state (CuiCallState state) { -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" - - switch (state) { - case CUI_CALL_STATE_INCOMING: - case CUI_CALL_STATE_WAITING: - return TRUE; - default: - return FALSE; - } + return state == CUI_CALL_STATE_INCOMING; } @@ -311,14 +303,12 @@ is_active_state (CuiCallState state) switch (state) { case CUI_CALL_STATE_ACTIVE: case CUI_CALL_STATE_CALLING: - case CUI_CALL_STATE_ALERTING: case CUI_CALL_STATE_HELD: return TRUE; default: return FALSE; } } -#pragma GCC diagnostic warning "-Wdeprecated-declarations" static gboolean