ringer: Remove deprecated CuiCallStates
They haven't been used since
4bc8e82ff6
and could probably have been removed sooner.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user