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

Unified Diff: runtime/lib/platform_patch.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 | « runtime/bin/builtin.dart ('k') | sdk/lib/_internal/lib/platform_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/platform_patch.dart
diff --git a/runtime/lib/platform_patch.dart b/runtime/lib/platform_patch.dart
index cc1c1879fa362ec2fff4fca3d1d1443dd1ea1d5e..80dfef91e3dd7aac483706dde9fc08f125139fce 100644
--- a/runtime/lib/platform_patch.dart
+++ b/runtime/lib/platform_patch.dart
@@ -22,14 +22,6 @@ patch List<String> get executableArguments => _platform.executableArguments;
patch String get packageRoot => _platform.packageRoot;
-patch bool get isLinux => _platform.operatingSystem == "linux";
-
-patch bool get isMacOS => _platform.operatingSystem == "macos";
-
-patch bool get isWindows => _platform.operatingSystem == "windows";
-
-patch bool get isAndroid => _platform.operatingSystem == "android";
-
class _Platform {
int get numberOfProcessors;
String get pathSeparator;
@@ -52,7 +44,7 @@ class _DefaultPlatform implements _Platform {
}
String get pathSeparator {
- return "/";
+ return null;
}
String get operatingSystem {
« no previous file with comments | « runtime/bin/builtin.dart ('k') | sdk/lib/_internal/lib/platform_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698