From 5c95898e930051ecc48d5cd2dd3434c02dd661ad Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Mon, 20 Jan 2025 23:08:04 +0900 Subject: [PATCH] Remove rb_obj_as_string for Parser Ruby Parser not used rb_obj_as_string. And obj_as_string property can be removed from Universal Parser. --- ruby_parser.c | 1 - rubyparser.h | 1 - universal_parser.c | 1 - 3 files changed, 3 deletions(-) diff --git a/ruby_parser.c b/ruby_parser.c index c14b9893f0..c1ed91117e 100644 --- a/ruby_parser.c +++ b/ruby_parser.c @@ -374,7 +374,6 @@ static const rb_parser_config_t rb_global_parser_config = { .rb_sprintf = rb_sprintf, .rstring_ptr = RSTRING_PTR, .rstring_len = RSTRING_LEN, - .obj_as_string = rb_obj_as_string, .int2num = rb_int2num_inline, diff --git a/rubyparser.h b/rubyparser.h index 689c4e3baa..2ab5ab6b2a 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -1260,7 +1260,6 @@ typedef struct rb_parser_config_struct { VALUE (*rb_sprintf)(const char *format, ...); char *(*rstring_ptr)(VALUE str); long (*rstring_len)(VALUE str); - VALUE (*obj_as_string)(VALUE); /* Numeric */ VALUE (*int2num)(int v); diff --git a/universal_parser.c b/universal_parser.c index 8f499cbb07..8a36d5dad8 100644 --- a/universal_parser.c +++ b/universal_parser.c @@ -124,7 +124,6 @@ #define RSTRING_PTR p->config->rstring_ptr #undef RSTRING_LEN #define RSTRING_LEN p->config->rstring_len -#define rb_obj_as_string p->config->obj_as_string #undef INT2NUM #define INT2NUM p->config->int2num