Skip to content

Commit d54063a

Browse files
committed
Remove dead cases from convert_UTF8_to_* functions
1 parent 48e22da commit d54063a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ext/json/ext/generator/generator.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ static void convert_UTF8_to_JSON(FBuffer *out_buffer, VALUE str, const char esca
4444

4545
if (RB_UNLIKELY(ch_len)) {
4646
switch (ch_len) {
47-
case 0:
48-
pos++;
49-
break;
5047
case 1: {
5148
FLUSH_POS(1);
5249
switch (ch) {
@@ -217,9 +214,6 @@ static void convert_UTF8_to_ASCII_only_JSON(FBuffer *out_buffer, VALUE str, cons
217214

218215
if (RB_UNLIKELY(ch_len)) {
219216
switch (ch_len) {
220-
case 0:
221-
pos++;
222-
break;
223217
case 1: {
224218
FLUSH_POS(1);
225219
switch (ch) {

0 commit comments

Comments
 (0)