[calls] call: Remove waiting state
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] call: Remove waiting state
- Date: Thu, 1 Sep 2022 15:58:41 +0000 (UTC)
commit 8a928f20089d58eb6cb54026887225ae7065fe0f
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]