From 41eb48b88d90936c0055aecb855752ed6e15b7fc Mon Sep 17 00:00:00 2001 From: glass Date: Tue, 8 Oct 2013 04:56:50 +0000 Subject: * array.c (rb_ary_uniq): use rb_hash_keys(). * internal.h: define rb_hash_keys() as internal API. * hash.c (rb_hash_keys): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'array.c') diff --git a/array.c b/array.c index 76289f41f6..e94eff5b0d 100644 --- a/array.c +++ b/array.c @@ -4130,13 +4130,7 @@ rb_ary_uniq(VALUE ary) } else { hash = ary_make_hash(ary); - uniq = ary_new(rb_obj_class(ary), RHASH_SIZE(hash)); - for (i=0; i