diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-11-30 11:40:13 -0500 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-11-30 21:37:56 -0500 |
commit | ea409958b38424f296aacc5c2d8d7bf3bcd1d2db (patch) | |
tree | 356114fc7c8e79459bee887cfcda830fe7d06c1c /prism/parser.h | |
parent | 997083188b8f7c2b058544a805a0dec83ea5483d (diff) | |
download | ruby-ea409958b38424f296aacc5c2d8d7bf3bcd1d2db.tar.gz |
[ruby/prism] Remove ability to decode other encodings
https://github.com/ruby/prism/commit/98e218d989
Diffstat (limited to 'prism/parser.h')
-rw-r--r-- | prism/parser.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/prism/parser.h b/prism/parser.h index 424d150ebe..bfad39a1d9 100644 --- a/prism/parser.h +++ b/prism/parser.h @@ -422,14 +422,6 @@ typedef struct { typedef void (*pm_encoding_changed_callback_t)(pm_parser_t *parser); /** - * When an encoding is encountered that isn't understood by prism, we provide - * the ability here to call out to a user-defined function to get an encoding - * struct. If the function returns something that isn't NULL, we set that to - * our encoding and use it to parse identifiers. - */ -typedef pm_encoding_t *(*pm_encoding_decode_callback_t)(pm_parser_t *parser, const uint8_t *name, size_t width); - -/** * When you are lexing through a file, the lexer needs all of the information * that the parser additionally provides (for example, the local table). So if * you want to properly lex Ruby, you need to actually lex it in the context of @@ -609,14 +601,6 @@ struct pm_parser { pm_encoding_changed_callback_t encoding_changed_callback; /** - * When an encoding is encountered that isn't understood by prism, we - * provide the ability here to call out to a user-defined function to get an - * encoding struct. If the function returns something that isn't NULL, we - * set that to our encoding and use it to parse identifiers. - */ - pm_encoding_decode_callback_t encoding_decode_callback; - - /** * This pointer indicates where a comment must start if it is to be * considered an encoding comment. */ |