Permalink
Browse files

Added a TODO and got rid of the Float#__immediate__? method, as all f…

…loats are fixfloats now.

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/fp-optimized-experimental@1868 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 245a85c commit aaaf25db45e15bb6fa7f582e90f5fb9bae92e3b4 Patrick Thomson committed Jun 16, 2009
Showing with 1 addition and 14 deletions.
  1. +1 −0 TODO
  2. +0 −14 numeric.c
View
1 TODO
@@ -75,3 +75,4 @@
[ ] test/spec
[ ] mocha
[X] known_bugs
+[ ] for JIT, make divide-by-zero work properly.
View
@@ -1384,19 +1384,6 @@ flo_truncate(VALUE num, SEL sel)
/*
* call-seq:
- * flt.__immediate__? -> true or false
- *
- * Returns <code>true</code> if <i>fix</i> is an even number.
- */
-
-static VALUE
-flo_immediate_p(VALUE num, SEL sel)
-{
- return (FIXFLOAT_P(num) ? Qtrue : Qfalse);
-}
-
-/*
- * call-seq:
* num.floor => integer
*
* Returns the largest integer less than or equal to <i>num</i>.
@@ -3386,7 +3373,6 @@ Init_Numeric(void)
rb_objc_define_method(rb_cFloat, "nan?", flo_is_nan_p, 0);
rb_objc_define_method(rb_cFloat, "infinite?", flo_is_infinite_p, 0);
rb_objc_define_method(rb_cFloat, "finite?", flo_is_finite_p, 0);
- rb_objc_define_method(rb_cFloat, "__immediate__?", flo_immediate_p, 0);
rb_install_nsnumber_primitives();
}

0 comments on commit aaaf25d

Please sign in to comment.