summaryrefslogtreecommitdiff
path: root/ext/json/ext/generator/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/ext/generator/unicode.c')
-rw-r--r--ext/json/ext/generator/unicode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/json/ext/generator/unicode.c b/ext/json/ext/generator/unicode.c
index 76834eadc5..93e8502b08 100644
--- a/ext/json/ext/generator/unicode.c
+++ b/ext/json/ext/generator/unicode.c
@@ -144,8 +144,6 @@ void JSON_convert_UTF8_to_JSON(VALUE buffer, VALUE string, ConversionFlags flags
rb_str_buf_cat2(buffer, "\\\"");
} else if (ch == '\\') {
rb_str_buf_cat2(buffer, "\\\\");
- } else if (ch == '/') {
- rb_str_buf_cat2(buffer, "\\/");
} else if (ch >= 0x20 && ch <= 0x7f) {
rb_str_buf_cat(buffer, (char *) source - 1, 1);
} else if (ch == '\n') {