summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS-H-GAMELINKS <[email protected]>2025-01-04 13:42:22 +0900
committerNobuyoshi Nakada <[email protected]>2025-01-06 20:17:47 +0900
commit975461bf885b8fb791cf048ad39c79924d28e4e9 (patch)
treeb3ded6314ae6514a70be109564a1fa1d52bbbbb0
parente0591b666f763a5adc3bad0772c214e11128d81b (diff)
Remove SYM2ID for Parser
Ruby Parser not used SYM2ID. And sym2id property can be removed from Universal Parser.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12507
-rw-r--r--ruby_parser.c1
-rw-r--r--rubyparser.h1
-rw-r--r--universal_parser.c2
3 files changed, 0 insertions, 4 deletions
diff --git a/ruby_parser.c b/ruby_parser.c
index 2fbba418a3..c14b9893f0 100644
--- a/ruby_parser.c
+++ b/ruby_parser.c
@@ -362,7 +362,6 @@ static const rb_parser_config_t rb_global_parser_config = {
.id2name = rb_id2name,
.id2str = rb_id2str,
.id2sym = rb_id2sym,
- .sym2id = rb_sym2id,
.str_catf = rb_str_catf,
.str_cat_cstr = rb_str_cat_cstr,
diff --git a/rubyparser.h b/rubyparser.h
index 0d3a04c88e..b564523ae4 100644
--- a/rubyparser.h
+++ b/rubyparser.h
@@ -1233,7 +1233,6 @@ typedef struct rb_parser_config_struct {
const char *(*id2name)(ID id);
VALUE (*id2str)(ID id);
VALUE (*id2sym)(ID x);
- ID (*sym2id)(VALUE sym);
/* String */
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 3)
diff --git a/universal_parser.c b/universal_parser.c
index a381f9a86b..8f499cbb07 100644
--- a/universal_parser.c
+++ b/universal_parser.c
@@ -107,8 +107,6 @@
#define rb_id2str p->config->id2str
#undef ID2SYM
#define ID2SYM p->config->id2sym
-#undef SYM2ID
-#define SYM2ID p->config->sym2id
#define rb_str_catf p->config->str_catf
#undef rb_str_cat_cstr