diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-31 15:25:59 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-31 23:05:03 +0900 |
| commit | 1d82d07cacb5fd5fde4b628fdc4f9df49bb92356 (patch) | |
| tree | 27c5ed5e9e73ede914859d38210d8e71ddb9c34c | |
| parent | cbe7a87c68a68f80107143897a29de501e74a833 (diff) | |
| download | mruby-1d82d07cacb5fd5fde4b628fdc4f9df49bb92356.tar.gz mruby-1d82d07cacb5fd5fde4b628fdc4f9df49bb92356.zip | |
Remove unused functions.
| -rw-r--r-- | src/numeric.c | 36 |
1 files changed, 0 insertions, 36 deletions
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 <i>num</i>. - * <code>Numeric</code> implements this by converting <i>anInteger</i> - * to a <code>Float</code> and invoking <code>Float#floor</code>. - * - * 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 <i>num</i> 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. <code>Numeric</code> implements this by converting itself - * to a <code>Float</code> and invoking <code>Float#round</code>. - */ - -static mrb_value -num_round(mrb_state *mrb, mrb_value num) -{ - return flo_round(mrb, mrb_Float(mrb, num)); -} - /* * Document-class: Integer * |
