From b71d0f7f9d4e3ac14ae97c0d2b9a99b3d5d4eaac Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 26 Aug 2014 22:22:09 -0700 Subject: [PATCH] Remove untested, unused error handling for reduce_extra action --- src/runtime/parser.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/runtime/parser.c b/src/runtime/parser.c index cd454d67..1e70f811 100644 --- a/src/runtime/parser.c +++ b/src/runtime/parser.c @@ -245,12 +245,8 @@ const TSTree *ts_parser_parse(TSParser *parser, TSInput input, break; case TSParseActionTypeReduceExtra: - if (!reduce_extra(parser, action.data.symbol)) { - DEBUG_PARSE("ERROR"); - if (!handle_error(parser)) - return get_root(parser); - } DEBUG_PARSE("REDUCE EXTRA"); + reduce_extra(parser, action.data.symbol); break; case TSParseActionTypeAccept: