From 52c4d0e04825071044fa3b3062371a356924044c Mon Sep 17 00:00:00 2001 From: yui-knk Date: Mon, 26 Aug 2024 23:01:54 +0900 Subject: [PATCH] Remove `enc_coderange_broken` field from `struct rb_parser_config_struct` It has not been used since fcc55dc2261b4c61da711c10a5476d05d4391eca. --- ruby_parser.c | 1 - rubyparser.h | 1 - 2 files changed, 2 deletions(-) diff --git a/ruby_parser.c b/ruby_parser.c index 93901ea4d9..8e68493de1 100644 --- a/ruby_parser.c +++ b/ruby_parser.c @@ -418,7 +418,6 @@ static const rb_parser_config_t rb_global_parser_config = { .enc_coderange_7bit = ENC_CODERANGE_7BIT, .enc_coderange_unknown = ENC_CODERANGE_UNKNOWN, .usascii_encoding = usascii_encoding, - .enc_coderange_broken = ENC_CODERANGE_BROKEN, .enc_mbminlen = enc_mbminlen, .enc_isascii = enc_isascii, .enc_mbc_to_codepoint = enc_mbc_to_codepoint, diff --git a/rubyparser.h b/rubyparser.h index f60dfddd59..0af0198500 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -1247,7 +1247,6 @@ typedef struct rb_parser_config_struct { rb_encoding *(*enc_from_index)(int idx); int (*enc_isspace)(OnigCodePoint c, rb_encoding *enc); rb_encoding *(*usascii_encoding)(void); - int enc_coderange_broken; int (*enc_mbminlen)(rb_encoding *enc); bool (*enc_isascii)(OnigCodePoint c, rb_encoding *enc); OnigCodePoint (*enc_mbc_to_codepoint)(const char *p, const char *e, rb_encoding *enc);