Skip to content

Commit 975461b

Browse files
S-H-GAMELINKSnobu
authored andcommitted
Remove SYM2ID for Parser
Ruby Parser not used SYM2ID. And sym2id property can be removed from Universal Parser.
1 parent e0591b6 commit 975461b

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

ruby_parser.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ static const rb_parser_config_t rb_global_parser_config = {
362362
.id2name = rb_id2name,
363363
.id2str = rb_id2str,
364364
.id2sym = rb_id2sym,
365-
.sym2id = rb_sym2id,
366365

367366
.str_catf = rb_str_catf,
368367
.str_cat_cstr = rb_str_cat_cstr,

rubyparser.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,6 @@ typedef struct rb_parser_config_struct {
12331233
const char *(*id2name)(ID id);
12341234
VALUE (*id2str)(ID id);
12351235
VALUE (*id2sym)(ID x);
1236-
ID (*sym2id)(VALUE sym);
12371236

12381237
/* String */
12391238
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 3)

universal_parser.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@
107107
#define rb_id2str p->config->id2str
108108
#undef ID2SYM
109109
#define ID2SYM p->config->id2sym
110-
#undef SYM2ID
111-
#define SYM2ID p->config->sym2id
112110

113111
#define rb_str_catf p->config->str_catf
114112
#undef rb_str_cat_cstr

0 commit comments

Comments
 (0)