summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/re.c b/re.c
index 41463eb199..090ae9c75f 100644
--- a/re.c
+++ b/re.c
@@ -2403,9 +2403,6 @@ rb_reg_initialize(VALUE obj, const char *s, long len, rb_encoding *enc,
enc = fixed_enc;
}
}
- else if (!(options & ARG_ENCODING_FIXED)) {
- enc = rb_usascii_encoding();
- }
rb_enc_associate((VALUE)re, enc);
if ((options & ARG_ENCODING_FIXED) || fixed_enc) {