mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 20:35:31 +00:00
dummy: origin: Use g_assert in non public functions
This commit is contained in:
parent
85c6ac2ff8
commit
c2c8b1acd9
1 changed files with 4 additions and 6 deletions
|
@ -111,13 +111,11 @@ call_state_changed_cb (CallsDummyOrigin *self,
|
||||||
CallsCallState old_state,
|
CallsCallState old_state,
|
||||||
CallsCall *call)
|
CallsCall *call)
|
||||||
{
|
{
|
||||||
if (new_state != CALLS_CALL_STATE_DISCONNECTED)
|
g_assert (CALLS_IS_DUMMY_ORIGIN (self));
|
||||||
{
|
g_assert (CALLS_IS_DUMMY_CALL (call));
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
g_return_if_fail (CALLS_IS_DUMMY_ORIGIN (self));
|
if (new_state != CALLS_CALL_STATE_DISCONNECTED)
|
||||||
g_return_if_fail (CALLS_IS_CALL (call));
|
return;
|
||||||
|
|
||||||
remove_call (self, call, "Disconnected");
|
remove_call (self, call, "Disconnected");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue