From: fennecdjay Date: Sun, 1 Sep 2019 23:01:07 +0000 (+0200) Subject: :art: remove useless lines in scan1 X-Git-Tag: nightly~2243 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a3f7a288051621900112c103120b293da81705b0;p=gwion.git :art: remove useless lines in scan1 --- diff --git a/src/parse/scan1.c b/src/parse/scan1.c index c32a0ea4..059c7a4b 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -43,10 +43,9 @@ ANN static Type void_type(const Env env, const Type_Decl* td) { DECL_OO(const Type, type, = known_type_noref(env, td)) { const Type t = get_type(type); - if(GET_FLAG(t, template) && !GET_FLAG(t, scan1)) - CHECK_BO(scan1_cdef(env, t->e->def)) - if(isa(t, t_object) > 0) - CHECK_BO(type_recursive(env, td, t)) + assert(GET_FLAG(t, scan1)); + if(isa(t, t_object) > 0) + CHECK_BO(type_recursive(env, td, t)) } if(type->size) return type;