Remove untested, unused error handling for reduce_extra action

This commit is contained in:
Max Brunsfeld 2014-08-26 22:22:09 -07:00
parent 37d5db6fee
commit b71d0f7f9d

View file

@ -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: