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

Unified Diff: runtime/bin/builtin.dart

Issue 1374953002: Remove Resource class and support functions. Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove reference to resource class in dart2js compiler. Created 5 years, 3 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 | « pkg/package_test_data/pubspec.yaml ('k') | runtime/lib/core_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « pkg/package_test_data/pubspec.yaml ('k') | runtime/lib/core_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698