From 1d82d07cacb5fd5fde4b628fdc4f9df49bb92356 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Sun, 31 Mar 2013 15:25:59 +0900 Subject: Remove unused functions. --- src/numeric.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'src/numeric.c') diff --git a/src/numeric.c b/src/numeric.c index 988c1c44a..f4751d2ac 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -671,42 +671,6 @@ flo_truncate(mrb_state *mrb, mrb_value num) return mrb_fixnum_value((mrb_int)f); } -/* 15.2.8.3.17 */ -/* - * call-seq: - * num.floor -> integer - * - * Returns the largest integer less than or equal to num. - * Numeric implements this by converting anInteger - * to a Float and invoking Float#floor. - * - * 1.floor #=> 1 - * (-1).floor #=> -1 - */ - -static mrb_value -num_floor(mrb_state *mrb, mrb_value num) -{ - return flo_floor(mrb, mrb_Float(mrb, num)); -} - -/* 15.2.8.3.20 */ -/* - * call-seq: - * num.round([ndigits]) -> integer or float - * - * Rounds num to a given precision in decimal digits (default 0 digits). - * Precision may be negative. Returns a floating point number when ndigits - * is more than zero. Numeric implements this by converting itself - * to a Float and invoking Float#round. - */ - -static mrb_value -num_round(mrb_state *mrb, mrb_value num) -{ - return flo_round(mrb, mrb_Float(mrb, num)); -} - /* * Document-class: Integer * -- cgit v1.2.3