ruby-changes:8510
From: mame <ko1@a...>
Date: Thu, 30 Oct 2008 01:36:13 +0900 (JST)
Subject: [ruby-changes:8510] Ruby:r20044 (trunk, ruby_1_9_1): * array.c (rb_ary_splice): remove redundant check.
mame 2008-10-30 01:35:47 +0900 (Thu, 30 Oct 2008) New Revision: 20044 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20044 Log: * array.c (rb_ary_splice): remove redundant check. Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/array.c trunk/ChangeLog trunk/array.c Index: array.c =================================================================== --- array.c (revision 20043) +++ array.c (revision 20044) @@ -1198,10 +1198,6 @@ else { long alen; - if (beg + len > RARRAY_LEN(ary)) { - len = RARRAY_LEN(ary) - beg; - } - alen = RARRAY_LEN(ary) + rlen - len; if (alen >= ARY_CAPA(ary)) { ary_resize_capa(ary, alen); Index: ChangeLog =================================================================== --- ChangeLog (revision 20043) +++ ChangeLog (revision 20044) @@ -1,3 +1,7 @@ +Thu Oct 30 01:32:15 2008 Yusuke Endoh <mame@t...> + + * array.c (rb_ary_splice): remove redundant check. + Thu Oct 30 01:24:55 2008 Yusuke Endoh <mame@t...> * string.c (rb_str_cmp): fix condition which always returned true Index: ruby_1_9_1/array.c =================================================================== --- ruby_1_9_1/array.c (revision 20043) +++ ruby_1_9_1/array.c (revision 20044) @@ -1198,10 +1198,6 @@ else { long alen; - if (beg + len > RARRAY_LEN(ary)) { - len = RARRAY_LEN(ary) - beg; - } - alen = RARRAY_LEN(ary) + rlen - len; if (alen >= ARY_CAPA(ary)) { ary_resize_capa(ary, alen); Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 20043) +++ ruby_1_9_1/ChangeLog (revision 20044) @@ -1,3 +1,7 @@ +Thu Oct 30 01:32:15 2008 Yusuke Endoh <mame@t...> + + * array.c (rb_ary_splice): remove redundant check. + Thu Oct 30 01:24:55 2008 Yusuke Endoh <mame@t...> * string.c (rb_str_cmp): fix condition which always returned true -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/