From 088215631915e582e74ed8534024ca19ff113f5a Mon Sep 17 00:00:00 2001 From: gogotanaka Date: Thu, 9 Oct 2014 20:42:44 -0700 Subject: [PATCH 2/2] Remove unused internal func from math.c --- math.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/math.c b/math.c index a09d605..5eaa309 100644 --- a/math.c +++ b/math.c @@ -897,38 +897,12 @@ math_lgamma(VALUE obj, VALUE x) } -#define exp1(n) \ -VALUE \ -rb_math_##n(VALUE x)\ -{\ - return math_##n(rb_mMath, x);\ -} - -#define exp2(n) \ -VALUE \ -rb_math_##n(VALUE x, VALUE y)\ -{\ - return math_##n(rb_mMath, x, y);\ -} - -exp2(atan2) -exp1(cos) -exp1(cosh) -exp1(exp) -exp2(hypot) - VALUE rb_math_log(int argc, const VALUE *argv) { return math_log(argc, argv, rb_mMath); } -exp1(sin) -exp1(sinh) -#if 0 -exp1(sqrt) -#endif - /* * Document-class: Math::DomainError -- 1.8.5.2 (Apple Git-48)