tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f7196513d04acd263425c69aafda4a3a02c574b4

commit f7196513d04acd263425c69aafda4a3a02c574b4
Author: Tom Hacohen <t...@stosb.com>
Date:   Thu Oct 15 12:22:14 2015 +0100

    Eo callback call: Remove redundant safety checks.
    
    This is already being checked by eo_do, no need to duplicate this here.
---
 src/lib/eo/eo_base_class.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 5391e65..f99ca37 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -666,13 +666,9 @@ _eo_base_event_callback_call(Eo *obj_id, Eo_Base_Data *pd,
             const Eo_Event_Description *desc,
             void *event_info)
 {
-   Eina_Bool ret;
+   Eina_Bool ret = EINA_TRUE;
    Eo_Callback_Description *cb;
 
-   EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, EINA_FALSE);
-
-   ret = EINA_TRUE;
-
    pd->walking_list++;
 
    for (cb = pd->callbacks; cb; cb = cb->next)

-- 


Reply via email to