diff --git a/src/calls-manager.c b/src/calls-manager.c index 655bb4d..714996e 100644 --- a/src/calls-manager.c +++ b/src/calls-manager.c @@ -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 diff --git a/src/calls-manager.h b/src/calls-manager.h index 9ea6eb2..b42e970 100644 --- a/src/calls-manager.h +++ b/src/calls-manager.h @@ -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,