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:
parent
991512e196
commit
e28b15b41a
1 changed files with 1 additions and 11 deletions
|
@ -293,15 +293,7 @@ restart (CallsRinger *self,
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
is_ring_state (CuiCallState state)
|
is_ring_state (CuiCallState state)
|
||||||
{
|
{
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
return state == CUI_CALL_STATE_INCOMING;
|
||||||
|
|
||||||
switch (state) {
|
|
||||||
case CUI_CALL_STATE_INCOMING:
|
|
||||||
case CUI_CALL_STATE_WAITING:
|
|
||||||
return TRUE;
|
|
||||||
default:
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -311,14 +303,12 @@ is_active_state (CuiCallState state)
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case CUI_CALL_STATE_ACTIVE:
|
case CUI_CALL_STATE_ACTIVE:
|
||||||
case CUI_CALL_STATE_CALLING:
|
case CUI_CALL_STATE_CALLING:
|
||||||
case CUI_CALL_STATE_ALERTING:
|
|
||||||
case CUI_CALL_STATE_HELD:
|
case CUI_CALL_STATE_HELD:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
default:
|
default:
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
|
|
||||||
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue