From 3b8fdb68d1347365fba5924624c966718ae4cc32 Mon Sep 17 00:00:00 2001 From: mrkn Date: Sat, 12 Nov 2016 15:43:34 +0000 Subject: rational.c: remove f_negative_p * rational.c (f_negative_p): removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rational.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rational.c b/rational.c index f78017e467..9f7f2e1d34 100644 --- a/rational.c +++ b/rational.c @@ -160,12 +160,6 @@ fun2(idiv) #define f_expt10(x) rb_int_pow(INT2FIX(10), x) -inline static int -f_negative_p(VALUE x) -{ - return rb_num_negative_p(x); -} - inline static int f_zero_p(VALUE x) { @@ -1010,7 +1004,7 @@ nurat_expt(VALUE self, VALUE other) return f_rational_new_bang1(CLASS_OF(self), INT2FIX(f_odd_p(other) ? -1 : 1)); } else if (INT_ZERO_P(dat->num)) { - if (f_negative_p(other)) { + if (rb_num_negative_p(other)) { rb_num_zerodiv(); } else { -- cgit v1.2.3