From 996215e79a7b0f47b14531af64f71f7bc08f2bbc Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 21 Sep 2019 12:08:22 +0200 Subject: [PATCH] :shirt: Clean scan2_func_def --- src/parse/scan2.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/parse/scan2.c b/src/parse/scan2.c index 70666a18..2ccebe1b 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -520,10 +520,6 @@ ANN2(1,2) m_bool scan2_fdef(const Env env, const Func_Def f, const Value overloa ANN m_bool scan2_func_def(const Env env, const Func_Def f) { const m_uint scope = !GET_FLAG(f, global) ? env->scope->depth : env_push_global(env); const Value overload = nspc_lookup_value0(env->curr, f->base->xid); - const Value res = nspc_lookup_value0(env->curr, f->base->xid); -// if(res && res->owner == env->global_nspc) -// ERR_B(f->pos, _("'%s' already declared as value of type '%s'."), -// res->name, res->type->name) f->stack_depth = (env->class_def && !GET_FLAG(f, static) && !GET_FLAG(f, global)) ? SZ_INT : 0; if(GET_FLAG(f, variadic)) f->stack_depth += SZ_INT; -- 2.43.0