From: fennecdjay Date: Fri, 11 Oct 2019 20:45:58 +0000 (+0200) Subject: :art: Remove useless test X-Git-Tag: nightly~2167 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a0a767f9eb7707cdc812604efafe7f300c446fec;p=gwion.git :art: Remove useless test --- 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)