From c055135030b6a0eff4e9d9bee524f3e190ac233c Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 27 Apr 2016 15:35:23 +0000 Subject: {Fixnum,Bignum}#^ is unified into Integer. * numeric.c (int_xor): {Fixnum,Bignum}#^ is unified into Integer. * bignum.c (rb_big_xor): Don't define Bignum#^. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 7cdc863d84..35d2fba665 100644 --- a/bignum.c +++ b/bignum.c @@ -6656,12 +6656,6 @@ bigxor_int(VALUE x, long xn, BDIGIT hibitsx, long y) RB_GC_GUARD(x); return bignorm(z); } -/* - * call-seq: - * big ^ numeric -> integer - * - * Performs bitwise +exclusive or+ between _big_ and _numeric_. - */ VALUE rb_big_xor(VALUE x, VALUE y) @@ -6985,7 +6979,6 @@ Init_Bignum(void) rb_define_method(rb_cBignum, "**", rb_big_pow, 1); rb_define_method(rb_cBignum, "&", rb_big_and, 1); rb_define_method(rb_cBignum, "|", rb_big_or, 1); - 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_eq, 1); -- cgit v1.2.3