diff options
author | Jean Boussier <[email protected]> | 2024-10-29 12:47:57 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-10-30 10:13:49 +0900 |
commit | f2e51146f81997613b59f368bac0a12ec38dff98 () | |
tree | cf2f70b44f5257e70bcd38a9162277904f27376d /ext/json/generator | |
parent | 5d176436ce4683df57decab6e686c319bc4c53cd (diff) |
[ruby/json] Remove dead cases from convert_UTF8_to_* functions
https://.com/ruby/json/commit/d54063a790
-rw-r--r-- | ext/json/generator/generator.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -44,9 +44,6 @@ static void convert_UTF8_to_JSON(FBuffer *out_buffer, VALUE str, const char esca if (RB_UNLIKELY(ch_len)) { switch (ch_len) { - case 0: - pos++; - break; case 1: { FLUSH_POS(1); switch (ch) { @@ -217,9 +214,6 @@ static void convert_UTF8_to_ASCII_only_JSON(FBuffer *out_buffer, VALUE str, cons if (RB_UNLIKELY(ch_len)) { switch (ch_len) { - case 0: - pos++; - break; case 1: { FLUSH_POS(1); switch (ch) { |