Permalink
Browse files

remove unnecessary rb_ary_new() in rary_uniq_bang()

  • Loading branch information...
1 parent 75c2ecb commit 69434c940c75c66020d68da1cea93ce9ceb3a672 @Watson1978 Watson1978 committed May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 array.c
View
2 array.c
@@ -2837,7 +2837,7 @@ rary_uniq_bang(VALUE ary, SEL sel)
rary_resize(ary, RHASH_SIZE(hash));
}
else {
- hash = ary_make_hash(rb_ary_new(), ary);
+ hash = ary_make_hash(ary, 0);
if (RARRAY_LEN(ary) == RHASH_SIZE(hash)) {
return Qnil;
}

0 comments on commit 69434c9

Please sign in to comment.