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 6, 2024
1 parent 02f5e62 commit 0b4db71
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 @@ -483,7 +483,6 @@ static const rb_parser_config_t rb_global_parser_config = {
.filesystem_str_new_cstr = rb_filesystem_str_new_cstr,
.obj_as_string = rb_obj_as_string,

.num2int = rb_num2int_inline,
.int2num = rb_int2num_inline,

.stderr_tty_p = rb_stderr_tty_p,
Expand Down
1 change: 0 additions & 1 deletion rubyparser.h
Expand Up @@ -1310,7 +1310,6 @@ typedef struct rb_parser_config_struct {
VALUE (*obj_as_string)(VALUE);

/* Numeric */
int (*num2int)(VALUE val);
VALUE (*int2num)(int v);

/* IO */
Expand Down
2 changes: 0 additions & 2 deletions universal_parser.c
Expand Up @@ -156,8 +156,6 @@
#define rb_filesystem_str_new_cstr p->config->filesystem_str_new_cstr
#define rb_obj_as_string p->config->obj_as_string

#undef NUM2INT
#define NUM2INT p->config->num2int
#undef INT2NUM
#define INT2NUM p->config->int2num

Expand Down

0 comments on commit 0b4db71

Please sign in to comment.