Index: runtime/bin/builtin.dart |
diff --git a/runtime/bin/builtin.dart b/runtime/bin/builtin.dart |
index feb26a91a6d65f89a1dbc7b561ca2f5c5992868e..76617ba46f05e2a18bc08f9ab4fa7c4b62e7f1fd 100644 |
--- a/runtime/bin/builtin.dart |
+++ b/runtime/bin/builtin.dart |
@@ -635,17 +635,6 @@ String _resolveUri(String base, String userString) { |
} |
-// Handling of Resource class by dispatching to the load port. |
-Future<List<int>> _resourceReadAsBytes(Uri uri) { |
- var completer = new Completer<List<int>>(); |
- // Request the load of the resource associating the completer as the context |
- // for the load. |
- _loadData(_Dart_kResourceLoad, uri.toString(), uri, completer); |
Ivan Posva
2015/10/05 12:49:19
This was the only active use of the _Dart_kResourc
|
- // Return the future that will be triggered once the resource has been loaded. |
- return completer.future; |
-} |
- |
- |
// Embedder Entrypoint (gen_snapshot): |
// Resolve relative paths relative to working directory. |
String _resolveInWorkingDirectory(String fileName) { |
@@ -761,5 +750,4 @@ _extensionPathFromUri(String userUri) { |
// Register callbacks and hooks with the rest of the core libraries. |
_setupHooks() { |
_setupCompleted = true; |
- VMLibraryHooks.resourceReadAsBytes = _resourceReadAsBytes; |
} |