From da140ed0d191121486b0cceefcf3955b7807a014 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 19 Jan 2026 13:52:21 +0000 Subject: [PATCH] mie: parse: remove duplicate sub-parsers in parse_generic_op --- mie/parse/parser.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/mie/parse/parser.c b/mie/parse/parser.c index 82a8f56..3437c7e 100644 --- a/mie/parse/parser.c +++ b/mie/parse/parser.c @@ -1096,28 +1096,6 @@ static bool parse_generic_op( } } - if (mie_parser_parse_symbol(ctx, MIE_SYM_LEFT_BRACKET)) { - if (!mie_parser_parse_successor_list( - ctx, MIE_VECTOR_REF(dest->op_successors))) { - return false; - } - - if (!mie_parser_parse_symbol(ctx, MIE_SYM_RIGHT_BRACKET)) { - return false; - } - } - - if (mie_parser_parse_symbol(ctx, MIE_SYM_LEFT_PAREN)) { - if (!mie_parser_parse_region_list( - ctx, MIE_VECTOR_REF(dest->op_regions))) { - return false; - } - - if (!mie_parser_parse_symbol(ctx, MIE_SYM_RIGHT_PAREN)) { - return false; - } - } - if (mie_parser_parse_symbol(ctx, MIE_SYM_LEFT_BRACE)) { if (!mie_parser_parse_attribute_map(ctx, &dest->op_attrib)) { return false;