aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--string.c1
2 files changed, 3 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 06c0e089c6..d31b9f5caf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
-Fri Oct 24 19:29:22 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+Fri Oct 24 19:57:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
- * string.c (rb_str_dump): do not use C++ comment.
+ * string.c (rb_str_dump): should have removed commented out
+ unnecessary code. [ruby-cvs:27131]
Fri Oct 24 19:16:36 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
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);