1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-06 11:35:32 +00:00

dummy: origin: Use g_assert in non public functions

This commit is contained in:
Evangelos Ribeiro Tzaras 2022-01-14 06:11:35 +01:00
parent 85c6ac2ff8
commit c2c8b1acd9

View file

@ -111,13 +111,11 @@ call_state_changed_cb (CallsDummyOrigin *self,
CallsCallState old_state,
CallsCall *call)
{
if (new_state != CALLS_CALL_STATE_DISCONNECTED)
{
return;
}
g_assert (CALLS_IS_DUMMY_ORIGIN (self));
g_assert (CALLS_IS_DUMMY_CALL (call));
g_return_if_fail (CALLS_IS_DUMMY_ORIGIN (self));
g_return_if_fail (CALLS_IS_CALL (call));
if (new_state != CALLS_CALL_STATE_DISCONNECTED)
return;
remove_call (self, call, "Disconnected");
}