[calls] ringer: Remove deprecated CuiCallStates
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] ringer: Remove deprecated CuiCallStates
- Date: Tue, 20 Sep 2022 10:39:02 +0000 (UTC)
commit e28b15b41ae75191411ab52075ee3822baebf264
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Mon Sep 12 19:47:25 2022 +0200
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 40052c2c..05ade8ed 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]