From: fennecdjay Date: Fri, 4 Oct 2019 12:41:57 +0000 (+0200) Subject: :art: Fix dead code X-Git-Tag: nightly~2198^2~144 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=066f301a4c665c069f064824208f77a6fe14c898;p=gwion.git :art: Fix dead code --- diff --git a/src/parse/check.c b/src/parse/check.c index 2e5b6d45..c6ebbd49 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -980,9 +980,13 @@ ANN static m_bool check_stmt_code(const Env env, const Stmt_Code stmt) { return GW_OK; } +ANN static inline m_bool _check_breaks(const Env env, const Stmt b) { + RET_NSPC(check_stmt(env, b)) +} + ANN static m_bool check_breaks(const Env env, const Stmt a, const Stmt b) { vector_add(&env->scope->breaks, (vtype)a); - RET_NSPC(check_stmt(env, b)) + const m_bool ret = _check_breaks(env, b); vector_pop(&env->scope->breaks); return ret; }