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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 2248063003: Delete dead code (this was used for source-mirrors, which are now gone). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index d97d25e5cf2ca24ba95f683c0754193614fbbb50..cf4e21525616fef7efa12a76c5696ab39252ac36 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -199,8 +199,6 @@ abstract class Compiler implements LibraryLoaderListener {
// Initialized when dart:mirrors is loaded.
ClassElement deferredLibraryClass;
- /// Document class from dart:mirrors.
- ClassElement documentClass;
Element identicalFunction;
Element loadLibraryFunction;
Element functionApplyMethod;
@@ -564,14 +562,6 @@ abstract class Compiler implements LibraryLoaderListener {
coreClasses.functionClass.ensureResolved(resolution);
functionApplyMethod =
coreClasses.functionClass.lookupLocalMember('apply');
-
- if (options.preserveComments) {
- return libraryLoader
- .loadLibrary(Uris.dart_mirrors)
- .then((LibraryElement libraryElement) {
- documentClass = libraryElement.find('Comment');
- });
- }
}).then((_) => backend.onLibrariesLoaded(loadedLibraries));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698