From 05ac51d2258b7681df7484a4e0ca787de84c7af9 Mon Sep 17 00:00:00 2001 From: tadf Date: Mon, 15 Sep 2008 04:20:46 +0000 Subject: * complex.c (nucomp_eql_p): new. * complex.c (nucomp_hash): should use hash values of the elements. * rational.c (nurat_hash): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index d71d395d5c..694b619529 100644 --- a/hash.c +++ b/hash.c @@ -39,8 +39,6 @@ static ID id_hash, id_yield, id_default; static int rb_any_cmp(VALUE a, VALUE b) { - VALUE args[2]; - if (a == b) return 0; if (FIXNUM_P(a) && FIXNUM_P(b)) { return a != b; @@ -54,8 +52,6 @@ rb_any_cmp(VALUE a, VALUE b) return a != b; } - args[0] = a; - args[1] = b; return !rb_eql(a, b); } -- cgit v1.2.3