diff options
author | S-H-GAMELINKS <[email protected]> | 2024-03-27 00:47:36 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-04-01 12:05:16 +0900 |
commit | 0774232bf3c1eab0f6a414578988b051c9dda3cf (patch) | |
tree | 6b79b51a2f147efb2726bb4cea49576e3060ca60 /ruby_parser.c | |
parent | e07178d52613cb7090e6c5d8e8e57e8e1f938527 (diff) |
Remove unnecessary macros and functions for Universal Parser
Diffstat (limited to 'ruby_parser.c')
-rw-r--r-- | ruby_parser.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ruby_parser.c b/ruby_parser.c index 6d85a72c5b..83539612e8 100644 --- a/ruby_parser.c +++ b/ruby_parser.c @@ -264,18 +264,6 @@ enc_from_encoding(void *enc) } static int -encoding_get(VALUE obj) -{ - return ENCODING_GET(obj); -} - -static void -encoding_set(VALUE obj, int encindex) -{ - ENCODING_SET(obj, encindex); -} - -static int encoding_is_ascii8bit(VALUE obj) { return ENCODING_IS_ASCII8BIT(obj); @@ -603,8 +591,6 @@ static const rb_parser_config_t rb_global_parser_config = { .ascii8bit_encoding = ascii8bit_encoding, .enc_codelen = enc_codelen, .enc_mbcput = enc_mbcput, - .char_to_option_kcode = rb_char_to_option_kcode, - .ascii8bit_encindex = rb_ascii8bit_encindex, .enc_find_index = rb_enc_find_index, .enc_from_index = enc_from_index, .enc_associate_index = rb_enc_associate_index, @@ -613,8 +599,6 @@ static const rb_parser_config_t rb_global_parser_config = { .enc_coderange_unknown = ENC_CODERANGE_UNKNOWN, .enc_compatible = enc_compatible, .enc_from_encoding = enc_from_encoding, - .encoding_get = encoding_get, - .encoding_set = encoding_set, .encoding_is_ascii8bit = encoding_is_ascii8bit, .usascii_encoding = usascii_encoding, .enc_coderange_broken = ENC_CODERANGE_BROKEN, |