From 295113337299ac92eee3895c15a13de3372cfee0 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 30 Apr 2016 12:39:53 +0000 Subject: Define Integer#/ instead of Bignum#/. * numeric.c (rb_int_div): Define Integer#/. * bignum.c (rb_big_div): Don't define Bignum#/. * lib/mathn.rb (Integer#/): Replace Integer#/ instead of Bignum#/. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 1355ec0d1d..3c6a85a984 100644 --- a/bignum.c +++ b/bignum.c @@ -6038,15 +6038,6 @@ rb_big_divide(VALUE x, VALUE y, ID op) return bignorm(z); } -/* - * call-seq: - * big / other -> Numeric - * - * Performs division: the class of the resulting object depends on - * the class of numeric and on the magnitude of the - * result. - */ - VALUE rb_big_div(VALUE x, VALUE y) { @@ -6821,7 +6812,6 @@ Init_Bignum(void) rb_cBignum = rb_define_class("Bignum", rb_cInteger); rb_define_method(rb_cBignum, "coerce", rb_big_coerce, 1); - rb_define_method(rb_cBignum, "/", rb_big_div, 1); rb_define_method(rb_cBignum, "===", rb_big_eq, 1); -- cgit v1.2.3