From: fennecdjay Date: Tue, 10 Nov 2020 23:38:35 +0000 (+0100) Subject: :art: Remove useless calls X-Git-Tag: nightly~1172 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=645fcc3e9e5b98a307c67868c42a99a25ff72fe9;p=gwion.git :art: Remove useless calls --- diff --git a/src/parse/func_resolve_tmpl.c b/src/parse/func_resolve_tmpl.c index 0b18b70c..5a5b6a37 100644 --- a/src/parse/func_resolve_tmpl.c +++ b/src/parse/func_resolve_tmpl.c @@ -73,9 +73,7 @@ ANN static Func fptr_match(const Env env, struct ResolverArgs* ra) { fbase->tmpl->call = cpy_type_list(env->gwion->mp, types); if(template_push_types(env, fbase->tmpl) > 0) { const Fptr_Def fptr = new_fptr_def(env->gwion->mp, fbase); - if(traverse_fptr_def(env, fptr) > 0 && - (base->base->ret_type = known_type(env, base->base->td)) && - (!exp->args || !!check_exp(env, exp->args))) { + if(traverse_fptr_def(env, fptr) > 0) { m_func = find_func_match(env, fbase->func, exp->args); nspc_pop_type(env->gwion->mp, env->curr); if(m_func) @@ -96,8 +94,7 @@ ANN static Func func_match(const Env env, struct ResolverArgs* ra) { const Value exists = template_get_ready(env, v, ra->tmpl_name, i); if(exists) { if(env->func == exists->d.func_ref) { - if(check_call(env, ra->e) < 0 || - !find_func_match(env, env->func, ra->e->args)) + if(!find_func_match(env, env->func, ra->e->args)) continue; m_func = env->func; break;