[calls/master] call: Remove waiting state



commit 6b5aea8dff998bbbcaaa88ef894e80bd8282306a
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Fri Aug 5 11:15:25 2022 +0200

    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 258db836..9b6f0b16 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 490f0a11..68a69841 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 2c8cd534..5efc703c 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]