diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-20 14:37:35 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-20 14:37:35 +0000 |
commit | 4b64cf4ab40edce29a9b7f51d62eb82a0add5c66 (patch) | |
tree | 3b51517e6e650285b411eef014cce1dd4a8e2920 /string.c | |
parent | ef74828aa8479d82f40ed351aaed5b9df6f7a562 (diff) | |
download | ruby-4b64cf4ab40edce29a9b7f51d62eb82a0add5c66.tar.gz ruby-4b64cf4ab40edce29a9b7f51d62eb82a0add5c66.tar.xz ruby-4b64cf4ab40edce29a9b7f51d62eb82a0add5c66.zip |
* string.c (rb_str_splice, rb_str_upcase_bang): cleanups.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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 <i>str</i> 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" */ |