aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-17 17:17:08 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-17 17:17:08 +0000
commit2169bea82e57c3887285b06f36b0f79827de0986 (patch)
treee9d9c8429eb2842abcb74656e7e76f8667b37ab4 /numeric.c
parent0a607bc8f8101190e0684df2e4cea08cc562a5b0 (diff)
downloadruby-2169bea82e57c3887285b06f36b0f79827de0986.tar.gz
* numeric.c (fix_zero_p, fix_even_p, fix_odd_p): remove needless
functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/numeric.c b/numeric.c
index 59f27a575e..32e921a447 100644
--- a/numeric.c
+++ b/numeric.c
@@ -4032,55 +4032,6 @@ int_round(int argc, VALUE* argv, VALUE num)
}
/*
- * call-seq:
- * fix.zero? -> true or false
- *
- * Returns +true+ if +fix+ is zero.
- *
- */
-
-static VALUE
-fix_zero_p(VALUE num)
-{
- if (FIX2LONG(num) == 0) {
- return Qtrue;
- }
- return Qfalse;
-}
-
-/*
- * call-seq:
- * fix.odd? -> true or false
- *
- * Returns +true+ if +fix+ is an odd number.
- */
-
-static VALUE
-fix_odd_p(VALUE num)
-{
- if (num & 2) {
- return Qtrue;
- }
- return Qfalse;
-}
-
-/*
- * call-seq:
- * fix.even? -> true or false
- *
- * Returns +true+ if +fix+ is an even number.
- */
-
-static VALUE
-fix_even_p(VALUE num)
-{
- if (num & 2) {
- return Qfalse;
- }
- return Qtrue;
-}
-
-/*
* Document-class: ZeroDivisionError
*
* Raised when attempting to divide an integer by 0.