From: fennecdjay Date: Wed, 9 Oct 2019 20:26:08 +0000 (+0200) Subject: :art: Remove useless test X-Git-Tag: nightly~2198^2~57 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=4f67c745bb1bc373bd68f7a05fe2fefde736e6ce;p=gwion.git :art: Remove useless test --- diff --git a/src/parse/scan2.c b/src/parse/scan2.c index f9ee49bd..fa19de23 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -437,8 +437,7 @@ ANN static m_str func_tmpl_name(const Env env, const Func_Def f) { vector_init(&v); do { const Type t = nspc_lookup_type0(env->curr, id->xid); - if(!t) - continue; + assert(t); vector_add(&v, (vtype)t); tlen += strlen(t->name); } while((id = id->next) && ++tlen);