Index: tests/compiler/dart2js/analyze_unused_dart2js_test.dart |
diff --git a/tests/compiler/dart2js/analyze_unused_dart2js_test.dart b/tests/compiler/dart2js/analyze_unused_dart2js_test.dart |
index 82f934e283bfa08c8c1cabac0784de5ce682f26d..c73aee5dbe7e833f345179491ce97502efb2604d 100644 |
--- a/tests/compiler/dart2js/analyze_unused_dart2js_test.dart |
+++ b/tests/compiler/dart2js/analyze_unused_dart2js_test.dart |
@@ -8,7 +8,6 @@ import 'package:async_helper/async_helper.dart'; |
import 'package:compiler/src/compiler.dart'; |
import 'package:compiler/src/diagnostics/messages.dart'; |
-import 'package:compiler/src/elements/elements.dart' show LibraryElement; |
import 'package:compiler/src/filenames.dart'; |
import 'analyze_helper.dart'; |
@@ -81,7 +80,6 @@ bool checkResults(Compiler compiler, CollectingDiagnosticHandler handler) { |
} |
} |
- (compiler.libraryLoader.lookupLibrary(helperUri) as LibraryElement) |
- .forEachLocalMember(checkLive); |
+ compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive); |
return handler.checkResults(); |
} |