Skip to content

Commit cfd48ad

Browse files
committed
Remove unused function from struct rb_parser_config_struct
1 parent 184db1f commit cfd48ad

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

ruby_parser.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,6 @@ static const rb_parser_config_t rb_global_parser_config = {
573573
.enc_isascii = enc_isascii,
574574
.enc_mbc_to_codepoint = enc_mbc_to_codepoint,
575575

576-
.ractor_make_shareable = rb_ractor_make_shareable,
577-
578576
.local_defined = local_defined,
579577
.dvar_defined = dvar_defined,
580578

rubyparser.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,9 +1371,6 @@ typedef struct rb_parser_config_struct {
13711371
bool (*enc_isascii)(OnigCodePoint c, rb_encoding *enc);
13721372
OnigCodePoint (*enc_mbc_to_codepoint)(const char *p, const char *e, rb_encoding *enc);
13731373

1374-
/* Ractor */
1375-
VALUE (*ractor_make_shareable)(VALUE obj);
1376-
13771374
/* Compile */
13781375
// int rb_local_defined(ID id, const rb_iseq_t *iseq);
13791376
int (*local_defined)(ID, const void*);

universal_parser.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@
214214
#define ENCODING_IS_ASCII8BIT p->config->encoding_is_ascii8bit
215215
#define rb_usascii_encoding p->config->usascii_encoding
216216

217-
#define rb_ractor_make_shareable p->config->ractor_make_shareable
218-
219217
#define rb_local_defined p->config->local_defined
220218
#define rb_dvar_defined p->config->dvar_defined
221219

0 commit comments

Comments
 (0)