1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00

ringer: Remove deprecated CuiCallStates

They haven't been used since
4bc8e82ff6
and could probably have been removed sooner.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-09-12 19:47:25 +02:00
parent 991512e196
commit e28b15b41a

View file

@ -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