Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Unified Diff: runtime/lib/double.dart

Issue 8598021: Remove isOdd/isEven from num and double interfaces. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/lib/double.dart
===================================================================
--- runtime/lib/double.dart (revision 1661)
+++ runtime/lib/double.dart (working copy)
@@ -90,14 +90,6 @@
bool greaterThanFromInteger(int other) native "Double_greaterThanFromInteger";
- bool isEven() {
- // TODO(floitsch): find more efficient way to implement Double.isEven.
- return this % 2.0 == 0.0;
- }
- bool isOdd() {
- // TODO(floitsch): find more efficient way to implement Double.isOdd.
- return this % 2.0 == 1.0;
- }
bool isNegative() native "Double_isNegative";
bool isInfinite() native "Double_isInfinite";
bool isNaN() native "Double_isNaN";
« corelib/src/num.dart ('K') | « corelib/src/num.dart ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698