diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 05:26:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 05:26:52 +0000 |
commit | 728333dcd329a7dd5c423a2a2b564dc01312c9e0 (patch) | |
tree | c5506af86f0e64622601cdead4e90b7b1dccaaa2 /bignum.c | |
parent | 1b1a1ed6c8faeb41d4299dbbdd477713ab19e8b2 (diff) | |
download | ruby-728333dcd329a7dd5c423a2a2b564dc01312c9e0.tar.gz |
{Fixnum,Bignum}#modulo is unified into Integer.
* numeric.c (rb_int_modulo): {Fixnum,Bignum}#modulo is unified into
Integer.
* bignum.c (rb_big_modulo): Don't define Bignum#modulo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -6126,15 +6126,6 @@ rb_big_idiv(VALUE x, VALUE y) return rb_big_divide(x, y, rb_intern("div")); } -/* - * call-seq: - * big % other -> Numeric - * big.modulo(other) -> Numeric - * - * Returns big modulo other. See Numeric.divmod for more - * information. - */ - VALUE rb_big_modulo(VALUE x, VALUE y) { @@ -6913,7 +6904,6 @@ Init_Bignum(void) rb_define_method(rb_cBignum, "/", rb_big_div, 1); rb_define_method(rb_cBignum, "%", rb_big_modulo, 1); rb_define_method(rb_cBignum, "div", rb_big_idiv, 1); - rb_define_method(rb_cBignum, "modulo", rb_big_modulo, 1); rb_define_method(rb_cBignum, "remainder", rb_big_remainder, 1); rb_define_method(rb_cBignum, "==", rb_big_eq, 1); |