From a3f7a288051621900112c103120b293da81705b0 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 2 Sep 2019 01:01:07 +0200 Subject: [PATCH] :art: remove useless lines in scan1 --- src/parse/scan1.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.43.0