diff options
author | yui-knk <[email protected]> | 2024-04-23 09:29:32 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-04-23 11:18:52 +0900 |
commit | 3aa046803dd8b34d7814189f8103cd16fee76541 (patch) | |
tree | e13b10219329c2d2be3f4331c13dcaf8c8b21b29 /ruby_parser.c | |
parent | afa0d58580aa5d6356af532991d2c8dffb301732 (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 191f9dcdda..a7d989d493 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 void * -enc_compatible(VALUE str1, VALUE str2) -{ - return (void *)rb_enc_compatible(str1, str2); -} - static VALUE enc_from_encoding(void *enc) { @@ -442,7 +436,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_compatible = enc_compatible, .enc_from_encoding = enc_from_encoding, .encoding_is_ascii8bit = encoding_is_ascii8bit, .usascii_encoding = usascii_encoding, |