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

Unified Diff: pkg/analyzer_cli/lib/src/driver.dart

Issue 2382053002: Remove unused option in server API (Closed)
Patch Set: Created 4 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/analyzer/lib/source/pub_package_map_provider.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/driver.dart
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart
index ec779a7eb8dda662d1fdfe4fb65c148d403fe406..c0c54dc14835ce01ccf8169870701ed2f3eaf27c 100644
--- a/pkg/analyzer_cli/lib/src/driver.dart
+++ b/pkg/analyzer_cli/lib/src/driver.dart
@@ -15,9 +15,7 @@ import 'package:analyzer/file_system/physical_file_system.dart';
import 'package:analyzer/plugin/options.dart';
import 'package:analyzer/plugin/resolver_provider.dart';
import 'package:analyzer/source/analysis_options_provider.dart';
-import 'package:analyzer/source/package_map_provider.dart';
import 'package:analyzer/source/package_map_resolver.dart';
-import 'package:analyzer/source/pub_package_map_provider.dart';
import 'package:analyzer/source/sdk_ext.dart';
import 'package:analyzer/src/context/builder.dart';
import 'package:analyzer/src/dart/sdk/sdk.dart';
@@ -374,26 +372,6 @@ class Driver implements CommandLineStarter {
builder.defaultPackagesDirectoryPath = options.packageRootPath;
packageUriResolver = new PackageMapUriResolver(resourceProvider,
builder.convertPackagesToMap(builder.createPackageMap('')));
- } else if (options.packageConfigPath == null) {
- // TODO(pq): remove?
- if (packageInfo.packageMap == null) {
- // Fall back to pub list-package-dirs.
- PubPackageMapProvider pubPackageMapProvider =
- new PubPackageMapProvider(resourceProvider, sdk);
- file_system.Resource cwd = resourceProvider.getResource('.');
- PackageMapInfo packageMapInfo =
- pubPackageMapProvider.computePackageMap(cwd);
- Map<String, List<file_system.Folder>> packageMap =
- packageMapInfo.packageMap;
-
- // Only create a packageUriResolver if pub list-package-dirs succeeded.
- // If it failed, that's not a problem; it simply means we have no way
- // to resolve packages.
- if (packageMapInfo.packageMap != null) {
- packageUriResolver =
- new PackageMapUriResolver(resourceProvider, packageMap);
- }
- }
}
// Now, build our resolver list.
« no previous file with comments | « pkg/analyzer/lib/source/pub_package_map_provider.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698