You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ft...@apache.org on 2015/05/27 16:08:27 UTC

git commit: [flex-falcon] [refs/heads/IDEA-FLEX_JS_COMPILER] - FLEX-34860 : Cleanup CompJSC

Repository: flex-falcon
Updated Branches:
  refs/heads/IDEA-FLEX_JS_COMPILER f47c8490c -> bdf2549da


FLEX-34860 : Cleanup CompJSC


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/bdf2549d
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/bdf2549d
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/bdf2549d

Branch: refs/heads/IDEA-FLEX_JS_COMPILER
Commit: bdf2549da0d94c91ef864c32309253fff895525f
Parents: f47c849
Author: Frédéric THOMAS <we...@gmail.com>
Authored: Wed May 27 15:08:11 2015 +0100
Committer: Frédéric THOMAS <we...@gmail.com>
Committed: Wed May 27 15:08:11 2015 +0100

----------------------------------------------------------------------
 flex-compiler-oem/src/flex2/tools/CompJSC.java | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/bdf2549d/flex-compiler-oem/src/flex2/tools/CompJSC.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/flex2/tools/CompJSC.java b/flex-compiler-oem/src/flex2/tools/CompJSC.java
index d270529..c6f107b 100644
--- a/flex-compiler-oem/src/flex2/tools/CompJSC.java
+++ b/flex-compiler-oem/src/flex2/tools/CompJSC.java
@@ -1,10 +1,6 @@
 package flex2.tools;
 
 import org.apache.flex.compiler.clients.COMPJSC;
-import org.apache.flex.compiler.clients.JSCompilerEntryPoint;
-import org.apache.flex.compiler.driver.IBackend;
-
-import java.lang.reflect.InvocationTargetException;
 
 /**
  * @author: Frederic Thomas
@@ -13,11 +9,5 @@ import java.lang.reflect.InvocationTargetException;
  */
 public class CompJSC extends MxmlJSC {
 
-	private static Class<COMPJSC> COMPILER = COMPJSC.class;
-
-	private JSCompilerEntryPoint compiler;
-
-	protected JSCompilerEntryPoint getCompilerInstance(IBackend backend) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
-		return compiler != null ? compiler : COMPILER.getDeclaredConstructor(IBackend.class).newInstance(backend);
-	}
+    private static Class<COMPJSC> COMPILER = COMPJSC.class;
 }