summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2024-04-06 19:09:36 +0900
committerYuichiro Kaneko <[email protected]>2024-04-06 22:03:26 +0900
commit0b4db711dd43ea437093428ea72a08a2a6ef9f88 ()
tree86fbc1df9ac5f294aac6355de6c3b16b0cbc0bb2
parent02f5e627a49c28beb421c869e4e1d4525d59d8ac (diff)
Remove unused function from `struct rb_parser_config_struct`
-rw-r--r--ruby_parser.c1
-rw-r--r--rubyparser.h1
-rw-r--r--universal_parser.c2
3 files changed, 0 insertions, 4 deletions
@@ -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,
@@ -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 */
@@ -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