q66 pushed a commit to branch master.

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

commit 698631578f044cf3a419b9d60bf46438bfa415ea
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Thu Dec 8 14:06:09 2016 +0100

    eolian gen: remove dead code
    
    Cedric forgot to remove all of the promise code.
    
    Fixes CID1365652.
---
 src/bin/eolian/sources.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index 9114435..6e6961c 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -115,7 +115,6 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function 
*fid,
    Eina_Strbuf *params_full_imp = eina_strbuf_new(); /* as above, for impl */
    Eina_Strbuf *params_init = eina_strbuf_new(); /* default value inits */
 
-   Eina_Bool has_promise = EINA_FALSE;
    Eina_Stringshare *promise_param_name = NULL;
    Eina_Stringshare *promise_param_type = NULL;
 
@@ -402,13 +401,6 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function 
*fid,
 
         eina_strbuf_append(buf, ");\n");
 
-        if (has_promise)
-          {
-             eina_strbuf_append(buf, "\n#undef 
_EFL_OBJECT_API_BEFORE_HOOK\n#undef _EFL_OBJECT_API_AFTER_HOOK\n#undef 
_EFL_OBJECT_API_CALL_HOOK\n"
-                                     "#define 
_EFL_OBJECT_API_BEFORE_HOOK\n#define _EFL_OBJECT_API_AFTER_HOOK\n"
-                                     "#define _EFL_OBJECT_API_CALL_HOOK(x) 
x\n");
-          }
-
         /* now try legacy */
         Eina_Stringshare *lfn = eolian_function_full_c_name_get(fid, ftype, 
EINA_TRUE);
         if (!eolian_function_is_beta(fid) && lfn)

-- 


Reply via email to