From 69fbb21c12336810b0864f213c6a401c75967c3f Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 26 Apr 2016 12:09:40 +0000 Subject: {Fixnum,Bignum}#>> is unified into Integer. * numeric.c (rb_int_rshift): {Fixnum,Bignum}#>> is unified into Integer. * bignum.c (rb_big_rshift): Don't define Bignum#>>. * internal.h (rb_big_rshift): Declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 335304204e..9d908a741b 100644 --- a/bignum.c +++ b/bignum.c @@ -6748,14 +6748,6 @@ rb_big_lshift(VALUE x, VALUE y) } } - -/* - * call-seq: - * big >> numeric -> integer - * - * Shifts big right _numeric_ positions (left if _numeric_ is negative). - */ - VALUE rb_big_rshift(VALUE x, VALUE y) { @@ -7022,7 +7014,6 @@ Init_Bignum(void) rb_define_method(rb_cBignum, "^", rb_big_xor, 1); rb_define_method(rb_cBignum, "~", rb_big_neg, 0); rb_define_method(rb_cBignum, "<<", rb_big_lshift, 1); - rb_define_method(rb_cBignum, ">>", rb_big_rshift, 1); rb_define_method(rb_cBignum, "[]", rb_big_aref, 1); rb_define_method(rb_cBignum, "==", rb_big_eq, 1); -- cgit v1.2.3