aboutsummaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/encoding.c b/encoding.c
index 3f7a39b296..94577a1b24 100644
--- a/encoding.c
+++ b/encoding.c
@@ -388,12 +388,6 @@ rb_enc_compatible(VALUE str1, VALUE str2)
if (idx1 == idx2) {
return rb_enc_from_index(idx1);
}
-
- if (idx1 == 0 && rb_enc_asciicompat(enc = rb_enc_from_index(idx2)))
- return enc;
- if (idx2 == 0 && rb_enc_asciicompat(enc = rb_enc_from_index(idx1)))
- return enc;
-
if (BUILTIN_TYPE(str1) != T_STRING) {
VALUE tmp = str1;
str1 = str2;