revert auto-importing flash.events.Event. It isn't always needed so we shouldn't always add it
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/6aa1e02e Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/6aa1e02e Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/6aa1e02e Branch: refs/heads/develop Commit: 6aa1e02ef13dad637225c83aa779a5159ea4dc95 Parents: 62a28e3 Author: Alex Harui <[email protected]> Authored: Mon Sep 16 14:21:20 2013 -0700 Committer: Alex Harui <[email protected]> Committed: Tue Sep 17 12:04:37 2013 -0700 ---------------------------------------------------------------------- .../apache/flex/compiler/internal/units/ASCompilationUnit.java | 3 --- 1 file changed, 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/6aa1e02e/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java ---------------------------------------------------------------------- diff --git a/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java b/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java index 19d09a1..cb97c0d 100644 --- a/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java +++ b/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java @@ -416,10 +416,7 @@ public class ASCompilationUnit extends CompilationUnitBase getProject().clearScopeCacheForCompilationUnit(this); ast.runPostProcess(EnumSet.of(PostProcessStep.POPULATE_SCOPE)); if (isBindable) - { - pkg.getASScope().addImport("flash.events.Event"); pkg.getASScope().addImport("flash.events.EventDispatcher"); - } } final ImmutableSet<String> includedFiles = ast.getIncludeHandler().getIncludedFiles(); addScopeToProjectScope(new ASFileScope[] { ast.getFileScope() });
