diff options
author | yui-knk <[email protected]> | 2024-04-23 11:32:17 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-04-23 13:11:46 +0900 |
commit | e61f76ce9e098143c88e58f4ea91b15eb85ab793 (patch) | |
tree | 2efafa924be2738e88392180d0a2552efdfcbcfb /ruby_parser.c | |
parent | 33929ef995522f3e1898088dda52eec582ddd266 (diff) |
Remove unused functions from `struct rb_parser_config_struct`
Diffstat (limited to 'ruby_parser.c')
-rw-r--r-- | ruby_parser.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ruby_parser.c b/ruby_parser.c index c4f1d4a019..f6673d31e7 100644 --- a/ruby_parser.c +++ b/ruby_parser.c @@ -184,12 +184,6 @@ intern3(const char *name, long len, void *enc) return rb_intern3(name, len, (rb_encoding *)enc); } -static VALUE -enc_from_encoding(void *enc) -{ - return rb_enc_from_encoding((rb_encoding *)enc); -} - static int encoding_is_ascii8bit(VALUE obj) { @@ -436,7 +430,6 @@ static const rb_parser_config_t rb_global_parser_config = { .enc_isspace = enc_isspace, .enc_coderange_7bit = ENC_CODERANGE_7BIT, .enc_coderange_unknown = ENC_CODERANGE_UNKNOWN, - .enc_from_encoding = enc_from_encoding, .encoding_is_ascii8bit = encoding_is_ascii8bit, .usascii_encoding = usascii_encoding, .enc_coderange_broken = ENC_CODERANGE_BROKEN, |