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

Unified Diff: sdk/lib/platform/platform.dart

Issue 43773004: dart:platform | Remove isWindows, isLinux, isAndroid, isMacOS from dart:platform. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add comment about removing dart:io Platform Created 7 years, 2 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 | « sdk/lib/_internal/lib/platform_patch.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/platform/platform.dart
diff --git a/sdk/lib/platform/platform.dart b/sdk/lib/platform/platform.dart
index 68430a149bac46b79fa4e08bf74896dcce9d46ee..ee8658eba140d38e776204c8d78db1338a50ed05 100644
--- a/sdk/lib/platform/platform.dart
+++ b/sdk/lib/platform/platform.dart
@@ -19,6 +19,10 @@ external int get numberOfProcessors;
/**
* The path separator used on the platform to separate
* components in file paths.
+ *
+ * Returns null if the path separator is unknown or not valid.
+ *
+ * Supported on the standalone Dart executable and on dart2js.
*/
external String get pathSeparator;
@@ -49,28 +53,6 @@ external String get localHostname;
external String get version;
/**
- * True if the operating system is Linux.
- */
-// TODO(6997): Replace with bool get isLinux => operatingSystem == 'linux'
-// when issue with patched top-level functions is fixed.
-external bool get isLinux;
-
-/**
- * True if the operating system is Mac OS.
- */
-external bool get isMacOS;
-
-/**
- * True if the operating system is Windows.
- */
-external bool get isWindows;
-
-/**
- * True if the operating system is Android.
- */
-external bool get isAndroid;
-
-/**
* The environment for this instance of the platform.
*
* If environment variables are not supported on this platform, or not
« no previous file with comments | « sdk/lib/_internal/lib/platform_patch.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698