mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-17 16:05:36 +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:
parent
21ae0a67c4
commit
55be6cd39e
2 changed files with 0 additions and 29 deletions
|
@ -959,34 +959,6 @@ calls_manager_hang_up_all_calls (CallsManager *self)
|
||||||
g_debug ("Hung up on all calls");
|
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:
|
* calls_manager_get_suitable_origins:
|
||||||
* @self: The #CallsManager
|
* @self: The #CallsManager
|
||||||
|
|
|
@ -66,7 +66,6 @@ GListModel *calls_manager_get_suitable_origins (CallsManager *sel
|
||||||
const char *target);
|
const char *target);
|
||||||
CallsOrigin *calls_manager_get_origin_by_id (CallsManager *self,
|
CallsOrigin *calls_manager_get_origin_by_id (CallsManager *self,
|
||||||
const char *origin_id);
|
const char *origin_id);
|
||||||
gboolean calls_manager_has_active_call (CallsManager *self);
|
|
||||||
void calls_manager_hang_up_all_calls (CallsManager *self);
|
void calls_manager_hang_up_all_calls (CallsManager *self);
|
||||||
gboolean calls_manager_has_any_provider (CallsManager *self);
|
gboolean calls_manager_has_any_provider (CallsManager *self);
|
||||||
const char **calls_manager_get_provider_names (CallsManager *self,
|
const char **calls_manager_get_provider_names (CallsManager *self,
|
||||||
|
|
Loading…
Reference in a new issue