From: Jérémie Astor Date: Thu, 28 Apr 2022 21:54:48 +0000 (+0200) Subject: :art: remove useless func X-Git-Tag: nightly~275^2~20 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=699526cdf2d7d592669cec17fcfbb31db694a27c;p=gwion.git :art: remove useless func --- diff --git a/src/emit/emit.c b/src/emit/emit.c index b9f499dc..0f5e17c5 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -2099,16 +2099,6 @@ ANN static m_bool emit_exp_if(const Emitter emit, const Exp_If *exp_if) { return ret; } -ANN static inline m_bool emit_prim_novar(const Emitter emit, - const Exp_Primary *prim) { - const Exp e = exp_self(prim); - const uint var = exp_getvar(e); - exp_setvar(e, 0); - CHECK_BB(emit_symbol(emit, prim)); - exp_setvar(e, var); - return GW_OK; -} - ANN static m_bool emit_lambda(const Emitter emit, const Exp_Lambda *lambda) { CHECK_BB(emit_func_def(emit, lambda->def)); if (vflag(lambda->def->base->func->value_ref, vflag_member) &&