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

Unified Diff: sdk/lib/io/platform_impl.dart

Issue 124753002: Code cleanup (mostly io lib and some http lib). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 6 years, 11 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
Index: sdk/lib/io/platform_impl.dart
diff --git a/sdk/lib/io/platform_impl.dart b/sdk/lib/io/platform_impl.dart
index e85ce5c42c21f66f3169e13e01ff617fd2754dee..57598e87fcf894d5e9d26043b05be5db050fa97e 100644
--- a/sdk/lib/io/platform_impl.dart
+++ b/sdk/lib/io/platform_impl.dart
@@ -15,6 +15,9 @@ class _Platform {
external static String _packageRoot();
external static String _version();
+ static String executable = _executable();
+ static String packageRoot = _packageRoot();
+
// Cache the OS environemnt. This can be an OSError instance if
// retrieving the environment failed.
static var _environmentCache;
@@ -44,8 +47,6 @@ class _Platform {
}
}
- static String executable = _executable();
- static String packageRoot = _packageRoot();
static List<String> get executableArguments => _executableArguments();
static Map<String, String> get environment {
@@ -89,6 +90,8 @@ class _Platform {
// Environment variables are case-insensitive on Windows. In order
// to reflect that we use a case-insensitive string map on Windows.
class _CaseInsensitiveStringMap<V> implements Map<String, V> {
+ Map<String, V> _map;
+
_CaseInsensitiveStringMap() : _map = new Map<String, V>();
_CaseInsensitiveStringMap.from(Map<String, V> other)
@@ -118,6 +121,4 @@ class _CaseInsensitiveStringMap<V> implements Map<String, V> {
int get length => _map.length;
bool get isEmpty => _map.isEmpty;
bool get isNotEmpty => _map.isNotEmpty;
-
- Map<String, V> _map;
}
« sdk/lib/io/http_date.dart ('K') | « sdk/lib/io/link.dart ('k') | sdk/lib/io/process.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698