eolian gen: remove dead code

Cedric forgot to remove all of the promise code.

Fixes CID1365652.
This commit is contained in:
Daniel Kolesa 2016-12-08 14:06:09 +01:00
parent 6e8f97a22f
commit 698631578f
1 changed files with 0 additions and 8 deletions

View File

@ -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)