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 4, 2024
1 parent 6d82be4 commit 9e4eac2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions ruby_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,6 @@ static const rb_parser_config_t rb_global_parser_config = {
.enc_isascii = enc_isascii,
.enc_mbc_to_codepoint = enc_mbc_to_codepoint,

.ractor_make_shareable = rb_ractor_make_shareable,

.local_defined = local_defined,
.dvar_defined = dvar_defined,

Expand Down
3 changes: 0 additions & 3 deletions rubyparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -1371,9 +1371,6 @@ typedef struct rb_parser_config_struct {
bool (*enc_isascii)(OnigCodePoint c, rb_encoding *enc);
OnigCodePoint (*enc_mbc_to_codepoint)(const char *p, const char *e, rb_encoding *enc);

/* Ractor */
VALUE (*ractor_make_shareable)(VALUE obj);

/* Compile */
// int rb_local_defined(ID id, const rb_iseq_t *iseq);
int (*local_defined)(ID, const void*);
Expand Down
2 changes: 0 additions & 2 deletions universal_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@
#define ENCODING_IS_ASCII8BIT p->config->encoding_is_ascii8bit
#define rb_usascii_encoding p->config->usascii_encoding

#define rb_ractor_make_shareable p->config->ractor_make_shareable

#define rb_local_defined p->config->local_defined
#define rb_dvar_defined p->config->dvar_defined

Expand Down

0 comments on commit 9e4eac2

Please sign in to comment.