Index: pkg/compiler/lib/src/compiler.dart |
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
index d224ac78722184541f6ccdd51ac64ce8bf1a95fb..e3105d7ccd8b59078ab1749fbb6c05c13b5aa5ad 100644 |
--- a/pkg/compiler/lib/src/compiler.dart |
+++ b/pkg/compiler/lib/src/compiler.dart |
@@ -988,16 +988,8 @@ abstract class Compiler { |
reporter.log('Enqueuing ${library.canonicalUri}'); |
fullyEnqueueLibrary(library, enqueuer.resolution); |
}); |
- } else if (analyzeMain) { |
- if (mainApp != null) { |
- fullyEnqueueLibrary(mainApp, enqueuer.resolution); |
- } |
- if (librariesToAnalyzeWhenRun != null) { |
- for (Uri libraryUri in librariesToAnalyzeWhenRun) { |
- fullyEnqueueLibrary(libraryLoader.lookupLibrary(libraryUri), |
- enqueuer.resolution); |
- } |
- } |
+ } else if (analyzeMain && mainApp != null) { |
+ fullyEnqueueLibrary(mainApp, enqueuer.resolution); |
} |
// Elements required by enqueueHelpers are global dependencies |
// that are not pulled in by a particular element. |