From 13d1b4b9bbff5bed5bea7e63bcb60eabff9009f9 Mon Sep 17 00:00:00 2001 From: "Gavin D. Howard" Date: Thu, 22 Aug 2024 08:21:19 -0600 Subject: [PATCH] Remove some useless code After an error, which causes a jump, nothing will be executed. Signed-off-by: Gavin D. Howard --- src/bc_parse.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bc_parse.c b/src/bc_parse.c index 851a0022..cf439870 100644 --- a/src/bc_parse.c +++ b/src/bc_parse.c @@ -2054,8 +2054,6 @@ bc_parse_expr_err(BcParse* p, uint8_t flags, BcParseNext next) if (BC_ERR(array_last && t != BC_LEX_RPAREN)) { bc_parse_err(p, BC_ERR_PARSE_EXPR); - - array_last = false; } switch (t) @@ -2239,8 +2237,6 @@ bc_parse_expr_err(BcParse* p, uint8_t flags, BcParseNext next) if (BC_ERR(array_last)) { bc_parse_err(p, BC_ERR_PARSE_EXPR); - - array_last = false; } nparens -= 1;