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