Skip to content

Commit

Permalink
Remove unused function from struct rb_parser_config_struct
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Apr 9, 2024
1 parent 3d73cd7 commit 4dbd9c7
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
Expand Up @@ -435,7 +435,6 @@ static const rb_parser_config_t rb_global_parser_config = {
.ary_push = rb_ary_push,
.ary_new_from_args = rb_ary_new_from_args,
.ary_unshift = rb_ary_unshift,
.ary_new2 = rb_ary_new2,
.ary_modify = rb_ary_modify,
.array_len = rb_array_len,
.array_aref = RARRAY_AREF,
Expand Down
1 change: 0 additions & 1 deletion rubyparser.h
Expand Up @@ -1256,7 +1256,6 @@ typedef struct rb_parser_config_struct {
VALUE (*ary_push)(VALUE ary, VALUE elem);
VALUE (*ary_new_from_args)(long n, ...);
VALUE (*ary_unshift)(VALUE ary, VALUE item);
VALUE (*ary_new2)(long capa); // ary_new_capa
void (*ary_modify)(VALUE ary);
long (*array_len)(VALUE a);
VALUE (*array_aref)(VALUE, long);
Expand Down
2 changes: 0 additions & 2 deletions universal_parser.c
Expand Up @@ -95,8 +95,6 @@
#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
#undef rb_ary_new2
#define rb_ary_new2 p->config->ary_new2
#define rb_ary_modify p->config->ary_modify
#undef RARRAY_LEN
#define RARRAY_LEN p->config->array_len
Expand Down

0 comments on commit 4dbd9c7

Please sign in to comment.