Index: runtime/bin/dartutils.cc |
=================================================================== |
--- runtime/bin/dartutils.cc (revision 18864) |
+++ runtime/bin/dartutils.cc (working copy) |
@@ -18,15 +18,11 @@ |
const char* DartUtils::kASyncLibURL = "dart:async"; |
const char* DartUtils::kBuiltinLibURL = "dart:builtin"; |
const char* DartUtils::kCoreLibURL = "dart:core"; |
-const char* DartUtils::kCryptoLibURL = "dart:crypto"; |
const char* DartUtils::kIOLibURL = "dart:io"; |
const char* DartUtils::kIOLibPatchURL = "dart:io-patch"; |
-const char* DartUtils::kJsonLibURL = "dart:json"; |
const char* DartUtils::kUriLibURL = "dart:uri"; |
const char* DartUtils::kUtfLibURL = "dart:utf"; |
-const char* DartUtils::kIsolateLibURL = "dart:isolate"; |
- |
const char* DartUtils::kIdFieldName = "_id"; |
@@ -149,11 +145,6 @@ |
} |
-bool DartUtils::IsDartCryptoLibURL(const char* url_name) { |
- return (strcmp(url_name, kCryptoLibURL) == 0); |
-} |
- |
- |
bool DartUtils::IsDartIOLibURL(const char* url_name) { |
return (strcmp(url_name, kIOLibURL) == 0); |
} |
@@ -164,21 +155,6 @@ |
} |
-bool DartUtils::IsDartJsonLibURL(const char* url_name) { |
- return (strcmp(url_name, kJsonLibURL) == 0); |
-} |
- |
- |
-bool DartUtils::IsDartUriLibURL(const char* url_name) { |
- return (strcmp(url_name, kUriLibURL) == 0); |
-} |
- |
- |
-bool DartUtils::IsDartUtfLibURL(const char* url_name) { |
- return (strcmp(url_name, kUtfLibURL) == 0); |
-} |
- |
- |
Dart_Handle DartUtils::CanonicalizeURL(CommandLineOptions* url_mapping, |
Dart_Handle library, |
const char* url_str) { |
@@ -314,16 +290,8 @@ |
if (tag == kImportTag) { |
// Handle imports of other built-in libraries present in the SDK. |
Builtin::BuiltinLibraryId id; |
- if (DartUtils::IsDartCryptoLibURL(url_string)) { |
- id = Builtin::kCryptoLibrary; |
- } else if (DartUtils::IsDartIOLibURL(url_string)) { |
+ if (DartUtils::IsDartIOLibURL(url_string)) { |
id = Builtin::kIOLibrary; |
- } else if (DartUtils::IsDartJsonLibURL(url_string)) { |
- id = Builtin::kJsonLibrary; |
- } else if (DartUtils::IsDartUriLibURL(url_string)) { |
- id = Builtin::kUriLibrary; |
- } else if (DartUtils::IsDartUtfLibURL(url_string)) { |
- id = Builtin::kUtfLibrary; |
} else { |
return Dart_Error("Do not know how to load '%s'", url_string); |
} |