From 228b72b7a0d746e253eab509dd2c8052ad45ac18 Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 20 Nov 2004 14:37:35 +0000 Subject: * string.c (rb_str_splice, rb_str_upcase_bang): cleanups. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index e02fb504b8..acfd6f4bf9 100644 --- a/string.c +++ b/string.c @@ -1650,7 +1650,6 @@ rb_str_splice(str, beg, len, val) memmove(RSTRING(str)->ptr + beg + RSTRING(val)->len, RSTRING(str)->ptr + beg + len, RSTRING(str)->len - (beg + len)); - rb_str_modify(str); } if (RSTRING(str)->len < beg && len < 0) { MEMZERO(RSTRING(str)->ptr + RSTRING(str)->len, char, -len); @@ -2750,7 +2749,6 @@ rb_str_upcase_bang(str) * Returns a copy of str with all lowercase letters replaced with their * uppercase counterparts. The operation is locale insensitive---only * characters ``a'' to ``z'' are affected. - rb_str_modify(str); * * "hEllO".upcase #=> "HELLO" */ -- cgit v1.2.3