summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-11-17 12:09:23 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-11-20 10:15:21 +0100
commit14b6f23cb39b08ca14fb5407de5cc5a8ae7dde6d (patch)
tree54597e71f289c16d1d1ad032aef7b074892b6569
parentaef56b169e2588ee450e13b5f163c19bd65a330f (diff)
downloadefl-14b6f23cb39b08ca14fb5407de5cc5a8ae7dde6d.tar.gz
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 <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10689
-rw-r--r--src/lib/eo/eo_base_class.c13
1 files 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)
{