From 8a928f20089d58eb6cb54026887225ae7065fe0f Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 5 Aug 2022 11:15:25 +0200 Subject: [PATCH] call: Remove waiting state The waiting state is not used any more and made wrong assumptions to begin with, so let's get rid of it. --- src/calls-call.h | 1 - src/calls-ui-call-data.c | 1 - tests/test-ui-call.c | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/calls-call.h b/src/calls-call.h index 258db83..9b6f0b1 100644 --- a/src/calls-call.h +++ b/src/calls-call.h @@ -39,7 +39,6 @@ typedef enum { CALLS_CALL_STATE_DIALING, CALLS_CALL_STATE_ALERTING, CALLS_CALL_STATE_INCOMING, - CALLS_CALL_STATE_WAITING, CALLS_CALL_STATE_DISCONNECTED } CallsCallState; diff --git a/src/calls-ui-call-data.c b/src/calls-ui-call-data.c index 490f0a1..68a6984 100644 --- a/src/calls-ui-call-data.c +++ b/src/calls-ui-call-data.c @@ -770,7 +770,6 @@ calls_call_state_to_cui_call_state (CallsCallState state) case CALLS_CALL_STATE_ALERTING: return CUI_CALL_STATE_CALLING; case CALLS_CALL_STATE_INCOMING: - case CALLS_CALL_STATE_WAITING: return CUI_CALL_STATE_INCOMING; case CALLS_CALL_STATE_DISCONNECTED: return CUI_CALL_STATE_DISCONNECTED; diff --git a/tests/test-ui-call.c b/tests/test-ui-call.c index 2c8cd53..5efc703 100644 --- a/tests/test-ui-call.c +++ b/tests/test-ui-call.c @@ -33,8 +33,6 @@ test_cui_call_state_mapping (void) ==, CUI_CALL_STATE_CALLING); g_assert_cmpint (calls_call_state_to_cui_call_state (CALLS_CALL_STATE_INCOMING), ==, CUI_CALL_STATE_INCOMING); - g_assert_cmpint (calls_call_state_to_cui_call_state (CALLS_CALL_STATE_WAITING), - ==, CUI_CALL_STATE_INCOMING); g_assert_cmpint (calls_call_state_to_cui_call_state (CALLS_CALL_STATE_DISCONNECTED), ==, CUI_CALL_STATE_DISCONNECTED); g_assert_cmpint (calls_call_state_to_cui_call_state (42), ==, CUI_CALL_STATE_UNKNOWN);