From 14b6f23cb39b08ca14fb5407de5cc5a8ae7dde6d Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Sun, 17 Nov 2019 12:09:23 +0100 Subject: [PATCH] eo: there is no need to count callbacks here we are going to add this description anyways, no need to count here again. I think this is not really making anything really faster, its more keeping things consistance. Reviewed-by: Cedric BAIL Differential Revision: https://phab.enlightenment.org/D10689 --- src/lib/eo/eo_base_class.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 382beaa8d8..66e6032830 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -1270,15 +1270,10 @@ _special_event_count_inc(Eo *obj_id, Efl_Object_Data *pd, const Efl_Callback_Arr else if (it->desc == EFL_EVENT_NOREF && !pd->event_cb_EFL_EVENT_NOREF) { update_hash = EINA_FALSE; - - if (efl_event_callback_count(obj_id, EFL_EVENT_NOREF) > 0) - { - EO_OBJ_POINTER_RETURN(obj_id, obj); - obj->noref_event = EINA_TRUE; - EO_OBJ_DONE(obj_id); - - pd->event_cb_EFL_EVENT_NOREF = EINA_TRUE; - } + EO_OBJ_POINTER_RETURN(obj_id, obj); + obj->noref_event = EINA_TRUE; + EO_OBJ_DONE(obj_id); + pd->event_cb_EFL_EVENT_NOREF = EINA_TRUE; } else if (it->desc == EFL_EVENT_OWNERSHIP_SHARED || it->desc == EFL_EVENT_OWNERSHIP_UNIQUE) {