forked from enlightenment/efl
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
This commit is contained in:
parent
aef56b169e
commit
14b6f23cb3
|
@ -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)
|
else if (it->desc == EFL_EVENT_NOREF && !pd->event_cb_EFL_EVENT_NOREF)
|
||||||
{
|
{
|
||||||
update_hash = EINA_FALSE;
|
update_hash = EINA_FALSE;
|
||||||
|
EO_OBJ_POINTER_RETURN(obj_id, obj);
|
||||||
if (efl_event_callback_count(obj_id, EFL_EVENT_NOREF) > 0)
|
obj->noref_event = EINA_TRUE;
|
||||||
{
|
EO_OBJ_DONE(obj_id);
|
||||||
EO_OBJ_POINTER_RETURN(obj_id, obj);
|
pd->event_cb_EFL_EVENT_NOREF = EINA_TRUE;
|
||||||
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)
|
else if (it->desc == EFL_EVENT_OWNERSHIP_SHARED || it->desc == EFL_EVENT_OWNERSHIP_UNIQUE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue