From a0a767f9eb7707cdc812604efafe7f300c446fec Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 11 Oct 2019 22:45:58 +0200 Subject: [PATCH] :art: Remove 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 5180ec5e..9e295a14 100644 --- a/src/lib/import.c +++ b/src/lib/import.c @@ -393,10 +393,6 @@ ANN Type_Decl* str2decl(const Env env, const m_str s, m_uint *depth, const loc_t DECL_OO(ID_List, id, = str2list(env, type_name, depth, pos)) Type_Decl* td = new_type_decl(env->gwion->mp, id); Type_List tmp = NULL; - if(!td) { - free_id_list(env->gwion->mp, id); - return NULL; - } while((type_name = get_type_name(env, s, i++))) { m_uint d = 0; if(!tmp) -- 2.43.0