Skip to content

Commit

Permalink
Remove SYM2ID for Parser
Browse files Browse the repository at this point in the history
Ruby Parser not used SYM2ID.
And sym2id property can be removed from Universal Parser.
  • Loading branch information
S-H-GAMELINKS authored and nobu committed Jan 6, 2025
1 parent e0591b6 commit 975461b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion ruby_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion rubyparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions universal_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 975461b

Please sign in to comment.