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

Unified Diff: utils/pub/system_cache.dart

Issue 10941049: Remove "pub list" command. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove dead code. Created 8 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 | « utils/pub/pub.dart ('k') | utils/tests/pub/pub_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/system_cache.dart
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
index de236ac8067996018a1de0b5d924f3036e0baa45..56bd7e40e10c36198b6114823897634f084b0a91 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -51,25 +51,6 @@ class SystemCache {
}
/**
- * Loads all of the package ids in the cache and returns them.
- */
- Future<List<PackageId>> listAll() {
- return listDir(rootDir).chain((paths) {
- final sources = paths.map((path) {
- final source = sources[basename(path)];
- return listDir(path).transform((subpaths) {
- // TODO(rnystrom): Once there are cached packages and this path is
- // being used, figure out how version numbers should be acquired.
- return subpaths.map((subpath) =>
- new PackageId(
- basename(subpath), source, Version.none, basename(subpath)));
- });
- });
- return Futures.wait(sources).transform(flatten);
- });
- }
-
- /**
* Ensures that the package identified by [id] is installed to the cache,
* loads it, and returns it.
*
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/tests/pub/pub_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698