summaryrefslogtreecommitdiff
path: root/ext/json/parser/parser.h
diff options
authorLuke T. Shumaker <[email protected]>2024-02-22 20:51:28 -0700
committerHiroshi SHIBATA <[email protected]>2024-10-08 14:10:05 +0900
commit6e47968929f2ee77376d28a6561266d8f8e3a4f7 (patch)
tree89a2561cfaef397c299bfd5c373fa2f290c934b0 /ext/json/parser/parser.h
parentbad4ad63bff71748302d1089523a5dcbc40f6c57 (diff)
[ruby/json] Delete code that is based on CVTUTF
I did this based on manual inspection, comparing the code to my re-created history of CVTUTF at https://git.lukeshu.com/2git/cvtutf/ (created by the scripts at https://git.lukeshu.com/2git/cvtutf-make/) https://github.com/ruby/json/commit/0819553144
Diffstat (limited to 'ext/json/parser/parser.h')
-rw-r--r--ext/json/parser/parser.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/ext/json/parser/parser.h b/ext/json/parser/parser.h
index 651d40c074..d80f1b7303 100644
--- a/ext/json/parser/parser.h
+++ b/ext/json/parser/parser.h
@@ -19,18 +19,6 @@
#define option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key))
-/* unicode */
-
-typedef unsigned long UTF32; /* at least 32 bits */
-typedef unsigned short UTF16; /* at least 16 bits */
-typedef unsigned char UTF8; /* typically 8 bits */
-
-#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
-#define UNI_SUR_HIGH_START (UTF32)0xD800
-#define UNI_SUR_HIGH_END (UTF32)0xDBFF
-#define UNI_SUR_LOW_START (UTF32)0xDC00
-#define UNI_SUR_LOW_END (UTF32)0xDFFF
-
typedef struct JSON_ParserStruct {
VALUE Vsource;
char *source;