1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-17 16:05:36 +00:00

manager: remove unused CallsProvider argument from functions

Both add_origin() and remove_origin() don't really need it.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-04-18 02:33:13 +02:00
parent b71227aae5
commit 8a4d408f3f

View file

@ -144,11 +144,10 @@ ussd_state_changed_cb (CallsManager *self,
} }
static void static void
add_origin (CallsManager *self, CallsOrigin *origin, CallsProvider *provider) add_origin (CallsManager *self, CallsOrigin *origin)
{ {
g_assert (CALLS_IS_MANAGER (self)); g_assert (CALLS_IS_MANAGER (self));
g_assert (CALLS_IS_ORIGIN (origin)); g_assert (CALLS_IS_ORIGIN (origin));
g_assert (CALLS_IS_PROVIDER (provider));
g_signal_connect_swapped (origin, "call-added", G_CALLBACK (add_call), self); g_signal_connect_swapped (origin, "call-added", G_CALLBACK (add_call), self);
g_signal_connect_swapped (origin, "call-removed", G_CALLBACK (remove_call), self); g_signal_connect_swapped (origin, "call-removed", G_CALLBACK (remove_call), self);
@ -172,7 +171,7 @@ remove_call_cb (gpointer self, CallsCall *call, CallsOrigin *origin)
} }
static void static void
remove_origin (CallsManager *self, CallsOrigin *origin, CallsProvider *provider) remove_origin (CallsManager *self, CallsOrigin *origin)
{ {
GListModel *origins; GListModel *origins;
@ -208,7 +207,7 @@ remove_provider (CallsManager *self)
g_autoptr(CallsOrigin) origin = NULL; g_autoptr(CallsOrigin) origin = NULL;
origin = g_list_model_get_item (origins, i); origin = g_list_model_get_item (origins, i);
remove_origin (self, origin, self->provider); remove_origin (self, origin);
} }
calls_provider_unload_plugin (self->provider_name); calls_provider_unload_plugin (self->provider_name);
@ -241,7 +240,7 @@ origin_items_changed_cb (CallsManager *self)
g_autoptr(CallsOrigin) origin = NULL; g_autoptr(CallsOrigin) origin = NULL;
origin = g_list_model_get_item (origins, i); origin = g_list_model_get_item (origins, i);
add_origin (self, origin, self->provider); add_origin (self, origin);
if (!has_default_origin) if (!has_default_origin)
{ {
/* XXX /* XXX