From 1caa763e5580082b92bc32d8b8e5736f013683df Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Mon, 7 Aug 2023 08:48:59 +0900 Subject: [PATCH] e_focus: remove the unused focus_event functions These do nothing. Change-Id: Iac2005de8dd70f797461708fc6aa2de0638c3dc6 --- src/bin/e_client.c | 8 +------- src/bin/e_focus.c | 15 --------------- src/bin/e_focus.h | 3 --- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 40a228f..b5bef6a 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -4442,10 +4442,7 @@ e_client_mouse_up(E_Client *ec, int button, Evas_Point *output, E_Binding_Event_ e_object_unref(E_OBJECT(ec->cur_mouse_action)); ec->cur_mouse_action = NULL; } - else - { - e_focus_event_mouse_up(ec); - } + if ((button >= 1) && (button <= 3)) { ec->mouse.last_up[button - 1].mx = output->x; @@ -5189,8 +5186,6 @@ e_client_focused_set(E_Client *ec) while ((ec_unfocus) && (ec_unfocus->zone)) { ec_unfocus->want_focus = ec_unfocus->focused = 0; - if (!e_object_is_del(E_OBJECT(ec_unfocus))) - e_focus_event_focus_out(ec_unfocus); if (ec_unfocus->mouse.in && ec && (!e_client_util_is_popup(ec)) && (e_config->focus_policy != E_FOCUS_CLICK)) e_client_mouse_out(ec_unfocus, ec_unfocus->x - 1, ec_unfocus->y - 1); @@ -5238,7 +5233,6 @@ e_client_focused_set(E_Client *ec) } _e_client_hook_call(E_CLIENT_HOOK_FOCUS_SET, ec); - e_focus_event_focus_in(ec); if (!focus_track_frozen) e_client_focus_latest_set(ec); diff --git a/src/bin/e_focus.c b/src/bin/e_focus.c index 2ef2032..62845c6 100644 --- a/src/bin/e_focus.c +++ b/src/bin/e_focus.c @@ -65,20 +65,5 @@ e_focus_event_mouse_down(E_Client *ec) } } -EINTERN void -e_focus_event_mouse_up(E_Client *ec EINA_UNUSED) -{ -} - -EINTERN void -e_focus_event_focus_in(E_Client *ec EINA_UNUSED) -{ -} - -EINTERN void -e_focus_event_focus_out(E_Client *ec EINA_UNUSED) -{ -} - /* local subsystem functions */ diff --git a/src/bin/e_focus.h b/src/bin/e_focus.h index a75272b..fd468ce 100644 --- a/src/bin/e_focus.h +++ b/src/bin/e_focus.h @@ -6,9 +6,6 @@ EINTERN void e_focus_event_mouse_in(E_Client* ec); EINTERN void e_focus_event_mouse_out(E_Client* ec); EINTERN void e_focus_event_mouse_down(E_Client* ec); -EINTERN void e_focus_event_mouse_up(E_Client* ec); -EINTERN void e_focus_event_focus_in(E_Client *ec); -EINTERN void e_focus_event_focus_out(E_Client *ec); #endif #endif -- 2.7.4