]> Nishi Git Mirror - gwion.git/commitdiff
:art: remove useless lines in scan1
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 1 Sep 2019 23:01:07 +0000 (01:01 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 1 Sep 2019 23:01:07 +0000 (01:01 +0200)
src/parse/scan1.c

index c32a0ea448a7c093e0afc200bc382d5398e6b15c..059c7a4b7b3f9bc70bc1319850bbadc21bc91a4d 100644 (file)
@@ -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;