Skip to content

Commit

Permalink
Remove rb_ary_push for parser
Browse files Browse the repository at this point in the history
  • Loading branch information
S-H-GAMELINKS authored and nobu committed Jan 2, 2025
1 parent 3eebc81 commit ba82399
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion ruby_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ static const rb_parser_config_t rb_global_parser_config = {

.attr_get = rb_attr_get,

.ary_push = rb_ary_push,
.ary_new_from_args = rb_ary_new_from_args,
.ary_unshift = rb_ary_unshift,

Expand Down
1 change: 0 additions & 1 deletion rubyparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,6 @@ typedef struct rb_parser_config_struct {
VALUE (*attr_get)(VALUE obj, ID id);

/* Array */
VALUE (*ary_push)(VALUE ary, VALUE elem);
VALUE (*ary_new_from_args)(long n, ...);
VALUE (*ary_unshift)(VALUE ary, VALUE item);

Expand Down
1 change: 0 additions & 1 deletion universal_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@

#define rb_attr_get p->config->attr_get

#define rb_ary_push p->config->ary_push
#undef rb_ary_new_from_args
#define rb_ary_new_from_args p->config->ary_new_from_args
#define rb_ary_unshift p->config->ary_unshift
Expand Down

0 comments on commit ba82399

Please sign in to comment.