aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/string.c b/string.c
index fa2781939b..16382b5304 100644
--- a/string.c
+++ b/string.c
@@ -4212,7 +4212,6 @@ rb_str_dump(VALUE str)
sprintf(q, ".force_encoding(\"%s\")", enc->name);
enc = rb_ascii8bit_encoding();
}
- /* STR_SET_LEN(result, strlen(RSTRING_PTR(result))); */
OBJ_INFECT(result, str);
/* result from dump is ASCII */
rb_enc_associate(result, enc);