From babea6b33eb4d2f06542e9ed34e717f60c1b2c94 Mon Sep 17 00:00:00 2001 From: mrkn Date: Fri, 18 Mar 2016 13:11:09 +0000 Subject: * bignum.c (Bignum#eql?): remove its definition because it is unified with Numeric#eql?. * numeric.c (num_eql): treat Bignum values directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index e46c18837e..67f8179271 100644 --- a/bignum.c +++ b/bignum.c @@ -5466,17 +5466,6 @@ rb_big_eq(VALUE x, VALUE y) return Qtrue; } -/* - * call-seq: - * big.eql?(obj) -> true or false - * - * Returns true only if obj is a - * Bignum with the same value as big. Contrast this - * with Bignum#==, which performs type conversions. - * - * 68719476736.eql?(68719476736.0) #=> false - */ - VALUE rb_big_eql(VALUE x, VALUE y) { @@ -7044,7 +7033,6 @@ Init_Bignum(void) rb_define_method(rb_cBignum, "<", big_lt, 1); rb_define_method(rb_cBignum, "<=", big_le, 1); rb_define_method(rb_cBignum, "===", rb_big_eq, 1); - rb_define_method(rb_cBignum, "eql?", rb_big_eql, 1); rb_define_method(rb_cBignum, "to_f", rb_big_to_f, 0); rb_define_method(rb_cBignum, "abs", rb_big_abs, 0); rb_define_method(rb_cBignum, "magnitude", rb_big_abs, 0); -- cgit v1.2.3