Skip to content

Commit c7d9376

Browse files
committed
Remove unused functions from struct rb_parser_config_struct
1 parent 2992e10 commit c7d9376

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

ruby_parser.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ enc_mbc_to_codepoint(const char *p, const char *e, void *enc)
349349
return ONIGENC_MBC_TO_CODE((rb_encoding *)enc, up, ue);
350350
}
351351

352-
VALUE rb_io_gets_internal(VALUE io);
353352
extern VALUE rb_eArgError;
354353

355354
static const rb_parser_config_t rb_global_parser_config = {
@@ -396,8 +395,6 @@ static const rb_parser_config_t rb_global_parser_config = {
396395

397396
.str_catf = rb_str_catf,
398397
.str_cat_cstr = rb_str_cat_cstr,
399-
.str_subseq = rb_str_subseq,
400-
.str_new_frozen = rb_str_new_frozen,
401398
.str_modify = rb_str_modify,
402399
.str_set_len = rb_str_set_len,
403400
.str_cat = rb_str_cat,
@@ -413,7 +410,6 @@ static const rb_parser_config_t rb_global_parser_config = {
413410
.rstring_ptr = RSTRING_PTR,
414411
.rstring_end = RSTRING_END,
415412
.rstring_len = RSTRING_LEN,
416-
.filesystem_str_new_cstr = rb_filesystem_str_new_cstr,
417413
.obj_as_string = rb_obj_as_string,
418414

419415
.int2num = rb_int2num_inline,
@@ -423,7 +419,6 @@ static const rb_parser_config_t rb_global_parser_config = {
423419
.io_write = rb_io_write,
424420
.io_flush = rb_io_flush,
425421
.io_puts = rb_io_puts,
426-
.io_gets_internal = rb_io_gets_internal,
427422

428423
.debug_output_stdout = rb_ractor_stdout,
429424
.debug_output_stderr = rb_ractor_stderr,

rubyparser.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,6 @@ typedef struct rb_parser_config_struct {
12891289
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 3)
12901290
VALUE (*str_catf)(VALUE str, const char *format, ...);
12911291
VALUE (*str_cat_cstr)(VALUE str, const char *ptr);
1292-
VALUE (*str_subseq)(VALUE str, long beg, long len);
1293-
VALUE (*str_new_frozen)(VALUE orig);
12941292
void (*str_modify)(VALUE str);
12951293
void (*str_set_len)(VALUE str, long len);
12961294
VALUE (*str_cat)(VALUE str, const char *ptr, long len);
@@ -1308,7 +1306,6 @@ typedef struct rb_parser_config_struct {
13081306
char *(*rstring_ptr)(VALUE str);
13091307
char *(*rstring_end)(VALUE str);
13101308
long (*rstring_len)(VALUE str);
1311-
VALUE (*filesystem_str_new_cstr)(const char *ptr);
13121309
VALUE (*obj_as_string)(VALUE);
13131310

13141311
/* Numeric */
@@ -1320,7 +1317,6 @@ typedef struct rb_parser_config_struct {
13201317
VALUE (*io_write)(VALUE io, VALUE str);
13211318
VALUE (*io_flush)(VALUE io);
13221319
VALUE (*io_puts)(int argc, const VALUE *argv, VALUE out);
1323-
VALUE (*io_gets_internal)(VALUE io);
13241320

13251321
/* IO (Ractor) */
13261322
VALUE (*debug_output_stdout)(void);

universal_parser.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@
119119
#define rb_str_catf p->config->str_catf
120120
#undef rb_str_cat_cstr
121121
#define rb_str_cat_cstr p->config->str_cat_cstr
122-
#define rb_str_subseq p->config->str_subseq
123-
#define rb_str_new_frozen p->config->str_new_frozen
124122
#define rb_str_modify p->config->str_modify
125123
#define rb_str_set_len p->config->str_set_len
126124
#define rb_str_cat p->config->str_cat
@@ -142,7 +140,6 @@
142140
#define RSTRING_END p->config->rstring_end
143141
#undef RSTRING_LEN
144142
#define RSTRING_LEN p->config->rstring_len
145-
#define rb_filesystem_str_new_cstr p->config->filesystem_str_new_cstr
146143
#define rb_obj_as_string p->config->obj_as_string
147144

148145
#undef INT2NUM
@@ -153,7 +150,6 @@
153150
#define rb_io_write p->config->io_write
154151
#define rb_io_flush p->config->io_flush
155152
#define rb_io_puts p->config->io_puts
156-
#define rb_io_gets_internal p->config->io_gets_internal
157153

158154
#define rb_ractor_stdout p->config->debug_output_stdout
159155
#define rb_ractor_stderr p->config->debug_output_stderr

0 commit comments

Comments
 (0)