diff --git a/file.c b/file.c index 92338bb754..5265d3a3a5 100644 --- a/file.c +++ b/file.c @@ -4090,9 +4090,6 @@ static VALUE str_shrink(VALUE str) { rb_str_resize(str, RSTRING_LEN(str)); - // expand_path on Windows can sometimes mutate the string - // without clearing its coderange - ENC_CODERANGE_CLEAR(str); return str; }