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

Unified Diff: runtime/lib/math.dart

Issue 10913271: Move parseInt parseDouble to int/double classes as a static method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make int.parse directly native. Created 8 years, 3 months 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
« no previous file with comments | « runtime/lib/lib_sources.gypi ('k') | runtime/lib/math_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/math.dart
diff --git a/runtime/lib/math.dart b/runtime/lib/math.dart
index 9cba43fbf590c2b379ea4ff1a35839c3044f077a..bb32560cd517f17dcd55f0d307eb06b272a83d06 100644
--- a/runtime/lib/math.dart
+++ b/runtime/lib/math.dart
@@ -21,8 +21,6 @@ class MathNatives {
static double atan2(num a, num b) => _atan2(a.toDouble(), b.toDouble());
static double exp(num value) => _exp(value.toDouble());
static double log(num value) => _log(value.toDouble());
- static int parseInt(String str) => _parseInt(str);
- static double parseDouble(String str) => _parseDouble(str);
static double _random() native "MathNatives_random";
static double _sqrt(double value) native "MathNatives_sqrt";
@@ -35,6 +33,4 @@ class MathNatives {
static double _atan2(double a, double b) native "MathNatives_atan2";
static double _exp(double value) native "MathNatives_exp";
static double _log(double value) native "MathNatives_log";
- static int _parseInt(String str) native "MathNatives_parseInt";
- static double _parseDouble(String str) native "MathNatives_parseDouble";
}
« no previous file with comments | « runtime/lib/lib_sources.gypi ('k') | runtime/lib/math_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698