From: Jérémie Astor Date: Thu, 3 Dec 2020 05:52:59 +0000 (+0100) Subject: :art: Remove useless func X-Git-Tag: nightly~1139 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=0793838176886a41d4a3abba953964379ddb56db;p=gwion.git :art: Remove useless func --- diff --git a/src/parse/scan2.c b/src/parse/scan2.c index ccaeb95e..c7d63c71 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -91,13 +91,6 @@ ANN m_bool scan2_type_def(const Env env, const Type_Def tdef) { scan2_class_def(env, tdef->type->info->cdef) : GW_OK; } -ANN static inline Value prim_value(const Env env, const Symbol s) { - const Value value = nspc_lookup_value1(env->curr, s); - if(env->class_def) - return value ?: find_value(env->class_def, s); - return value; -} - ANN static m_bool scan2_range(const Env env, Range *range) { if(range->start) CHECK_BB(scan2_exp(env, range->start))