From 948f699ec9a892d352b262f83e325fbb1e1bf0b1 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Tue, 2 May 2023 10:59:54 +0900 Subject: [PATCH] e_client: remove e_clients_immortal_list It is deprecated. Change-Id: I0259dc1369be426f9b73fd561207eed3053265ab --- src/bin/e_client.c | 15 --------------- src/bin/e_client.h | 1 - src/bin/e_utils.c | 15 --------------- 3 files changed, 31 deletions(-) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 4a01dac645..8eb87a174d 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -5017,21 +5017,6 @@ e_client_warping_get(void) } -E_API Eina_List * -e_clients_immortal_list(void) -{ - const Eina_List *l; - Eina_List *list = NULL; - E_Client *ec; - - EINA_LIST_FOREACH(e_comp->clients, l, ec) - { - if (ec->lock_life) - list = eina_list_append(list, ec); - } - return list; -} - ////////////////////////////////////////////////////////// E_API void diff --git a/src/bin/e_client.h b/src/bin/e_client.h index f6a297c148..a4d1cd59c1 100644 --- a/src/bin/e_client.h +++ b/src/bin/e_client.h @@ -1133,7 +1133,6 @@ E_API Eina_Bool e_client_desk_iconify_skip_get(E_Client *ec); E_API Eina_Bool e_client_comp_grabbed_get(void); E_API E_Client *e_client_action_get(void); E_API E_Client *e_client_warping_get(void); -E_API Eina_List *e_clients_immortal_list(void); E_API void e_client_mouse_in(E_Client *ec, int x, int y); E_API void e_client_mouse_out(E_Client *ec, int x, int y); E_API void e_client_mouse_wheel(E_Client *ec, Evas_Point *output, E_Binding_Event_Wheel *ev); diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c index 86b10f5f6f..963fd584eb 100644 --- a/src/bin/e_utils.c +++ b/src/bin/e_utils.c @@ -148,21 +148,6 @@ e_util_both_str_empty(const char *s1, const char *s2) E_API int e_util_immortal_check(void) { - Eina_List *wins; - - wins = e_clients_immortal_list(); - if (wins) - { - e_util_dialog_show(_("Cannot exit - immortal windows."), - _("Some windows are left still around with the Lifespan lock enabled. This means
" - "that Enlightenment will not allow itself to exit until these windows have
" - "been closed or have the lifespan lock removed.
")); - /* FIXME: should really display a list of these lifespan locked */ - /* windows in a dialog and let the user disable their locks in */ - /* this dialog */ - eina_list_free(wins); - return 1; - } return 0; } -- 2.34.1