summaryrefslogtreecommitdiff
path: root/ruby_parser.c
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2024-04-23 20:09:42 +0900
committerYuichiro Kaneko <[email protected]>2024-04-24 07:59:51 +0900
commit813e12557a020dd4820c713b966c718735447c6c (patch)
tree6c647e3fd3a5c54773dad864f8cfcfd810cea0ce /ruby_parser.c
parente11237904cdee46409d0efb436b9b9326aaff355 (diff)
Remove unused functions from `struct rb_parser_config_struct`
Diffstat (limited to 'ruby_parser.c')
-rw-r--r--ruby_parser.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ruby_parser.c b/ruby_parser.c
index f6673d31e7..decc05f619 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 int
-encoding_is_ascii8bit(VALUE obj)
-{
- return ENCODING_IS_ASCII8BIT(obj);
-}
-
static void *
usascii_encoding(void)
{
@@ -430,7 +424,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,
- .encoding_is_ascii8bit = encoding_is_ascii8bit,
.usascii_encoding = usascii_encoding,
.enc_coderange_broken = ENC_CODERANGE_BROKEN,
.enc_mbminlen = enc_mbminlen,