From: fennecdjay Date: Fri, 11 Oct 2019 20:02:56 +0000 (+0200) Subject: :art: Remove useless check X-Git-Tag: nightly~2173 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2cdac3fee0ffc38f38d8148e35e455af25b61bbf;p=gwion.git :art: Remove useless check --- diff --git a/src/parse/check.c b/src/parse/check.c index 592bd0bf..b9c6bf23 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -794,8 +794,6 @@ ANN Type check_exp_call1(const Env env, const Exp_Call *exp) { return check_exp_call_template(env, (Exp_Call*)exp); const Func func = find_func_match(env, exp->func->type->e->d.func, exp->args); if((exp_self(exp)->d.exp_call.m_func = func)) { - if(func->value_ref->from->ctx && func->value_ref->from->ctx->error) - ERR_O(exp_self(exp)->pos, _("function '%s' is errored"), func->name) exp->func->type = func->value_ref->type; return func->def->base->ret_type; }