From de8deb5f9c7aef899bbad6652e86ab1031a25965 Mon Sep 17 00:00:00 2001 From: ydah Date: Sun, 29 Dec 2024 11:45:54 +0900 Subject: [PATCH] Remove unused token definitions for `tRPAREN` in Ripper and parser files --- ext/ripper/eventids2.c | 1 - parse.y | 2 -- 2 files changed, 3 deletions(-) diff --git a/ext/ripper/eventids2.c b/ext/ripper/eventids2.c index 439663f0fd..87f2f588ec 100644 --- a/ext/ripper/eventids2.c +++ b/ext/ripper/eventids2.c @@ -255,7 +255,6 @@ ripper_token2eventid(enum yytokentype tok) [tRATIONAL] = O(rational), [tREGEXP_BEG] = O(regexp_beg), [tREGEXP_END] = O(regexp_end), - [tRPAREN] = O(rparen), [tRSHFT] = O(op), [tSTAR] = O(op), [tDSTAR] = O(op), diff --git a/parse.y b/parse.y index 150fe795f8..df2230de83 100644 --- a/parse.y +++ b/parse.y @@ -967,7 +967,6 @@ parser_token2char(struct parser_params *p, enum yytokentype tok) TOKEN2CHAR(tASSOC); TOKEN2CHAR(tLPAREN); TOKEN2CHAR(tLPAREN_ARG); - TOKEN2CHAR(tRPAREN); TOKEN2CHAR(tLBRACK); TOKEN2CHAR(tLBRACE); TOKEN2CHAR(tLBRACE_ARG); @@ -2845,7 +2844,6 @@ rb_parser_ary_free(rb_parser_t *p, rb_parser_ary_t *ary) %token tASSOC "=>" %token tLPAREN "(" %token tLPAREN_ARG "( arg" -%token tRPAREN ")" %token tLBRACK "[" %token tLBRACE "{" %token tLBRACE_ARG "{ arg"