1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-28 06:39:32 +00:00

manager: Remove unused has_active_call() function

Introduced in f69c597387
but was never really used, so let's drop the dead code.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-08-10 15:54:52 +02:00
parent 21ae0a67c4
commit 55be6cd39e
2 changed files with 0 additions and 29 deletions

View file

@ -959,34 +959,6 @@ calls_manager_hang_up_all_calls (CallsManager *self)
g_debug ("Hung up on all calls");
}
/**
* calls_manager_has_active_call
* @self: a #CallsManager
*
* Checks if @self has any active call
*
* Returns: %TRUE if there are active calls, %FALSE otherwise
*/
gboolean
calls_manager_has_active_call (CallsManager *self)
{
g_autoptr (GList) calls = NULL;
GList *node;
CallsCall *call;
g_return_val_if_fail (CALLS_IS_MANAGER (self), FALSE);
calls = calls_manager_get_calls (self);
for (node = calls; node; node = node->next) {
call = node->data;
if (calls_call_get_state (call) != CALLS_CALL_STATE_DISCONNECTED)
return TRUE;
}
return FALSE;
}
/**
* calls_manager_get_suitable_origins:
* @self: The #CallsManager

View file

@ -66,7 +66,6 @@ GListModel *calls_manager_get_suitable_origins (CallsManager *sel
const char *target);
CallsOrigin *calls_manager_get_origin_by_id (CallsManager *self,
const char *origin_id);
gboolean calls_manager_has_active_call (CallsManager *self);
void calls_manager_hang_up_all_calls (CallsManager *self);
gboolean calls_manager_has_any_provider (CallsManager *self);
const char **calls_manager_get_provider_names (CallsManager *self,