From 066f301a4c665c069f064824208f77a6fe14c898 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 4 Oct 2019 14:41:57 +0200 Subject: [PATCH] :art: Fix dead code --- src/parse/check.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.43.0