From 112e142e9f392bbece1346a905d0356a75005ef5 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 11 Oct 2019 22:48:20 +0200 Subject: [PATCH] :art: Remove another useless test --- src/lib/import.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/import.c b/src/lib/import.c index 9e295a14..f05287bb 100644 --- a/src/lib/import.c +++ b/src/lib/import.c @@ -442,10 +442,6 @@ ANN Type_Decl* import_td(const Gwi gwi, const m_str name) { m_uint array_depth; DECL_OO(const ID_List, type_path, = str2list(env, name, &array_depth, gwi->loc)) Type_Decl* type_decl = new_type_decl(env->gwion->mp, type_path); - if(!type_decl) { - free_id_list(env->gwion->mp, type_path); - return NULL; - } if(array_depth) { Array_Sub array_sub = new_array_sub(env->gwion->mp, NULL); for(m_uint i = 1; i < array_depth; i++) -- 2.43.0