Commits

Stephen McKamey  committed 0b88ee0

pruning commented code

  • Participants
  • Parent commits 958e54b

Comments (0)

Files changed (2)

File duel-compiler/src/main/java/org/duelengine/duel/codegen/JavaCodeGen.java

 package org.duelengine.duel.codegen;
 
-import java.io.*;
+import java.io.IOException;
 import java.util.*;
+
 import org.duelengine.duel.*;
-import org.duelengine.duel.ast.*;
+import org.duelengine.duel.ast.VIEWCommandNode;
 import org.duelengine.duel.codedom.*;
 
 /**
 
 		output.append("import java.io.*;");
 		this.writeln(output, 0);
-//		output.append("import java.util.*;");
-//		this.writeln(output, 0);
-//		output.append("import java.util.Map.Entry;");
-//		this.writeln(output, 0);
 		output.append("import ").append(DUEL_PACKAGE).append(".*;");
 		this.writeln(output, 0, 2);
 	}

File duel-compiler/src/test/java/org/duelengine/duel/codegen/JavaCodeGenTest.java

 package org.duelengine.duel.codegen;
 
-import java.io.*;
+import static org.junit.Assert.*;
+
+import java.io.IOException;
 import java.util.*;
+
+import org.duelengine.duel.*;
+import org.duelengine.duel.codedom.*;
 import org.junit.Test;
-import static org.junit.Assert.*;
-import org.duelengine.duel.DuelContext;
-import org.duelengine.duel.DuelData;
-import org.duelengine.duel.codedom.*;
 
 public class JavaCodeGenTest {
 
 		String expected =
 			"package com.example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Foo extends DuelView {\n\n"+
 			"\tpublic Foo() {\n"+
 
 		String expected =
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class foo extends DuelView {\n\n"+
 			"\tpublic foo() {\n"+
 		String expected =
 			"package example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class foo extends DuelView {\n\n"+
 			"\tpublic foo() {\n"+
 		String expected =
 			"package example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class foo2 extends DuelView {\n\n"+
 			"\tpublic foo2() {\n"+
 
 		String expected =
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class example extends DuelView {\n\n"+
 			"\tpublic example() {\n"+
 
 		String expected =
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class example extends DuelView {\n\n"+
 			"\tpublic example() {\n"+
 
 		String expected =
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class example extends DuelView {\n\n"+
 			"\tpublic example() {\n"+
 		String expected =
 			"package com.example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Foo extends DuelView {\n\n"+
 			"\tpublic Foo() {\n"+
 		String expected =
 			"package com.example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Foo extends DuelView {\n\n"+
 			"\tpublic Foo() {\n"+
 		String expected =
 			"package com.example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Foo extends DuelView {\n\n"+
 			"\tpublic Foo() {\n"+
 		String expected =
 			"package com.example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Foo extends DuelView {\n\n"+
 			"\tpublic Foo() {\n"+
 		String expected =
 			"package com.example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Foo extends DuelView {\n\n"+
 			"\tpublic Foo() {\n"+
 		String expected =
 			"package com.example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Foo extends DuelView {\n\n"+
 			"\tpublic Foo() {\n"+
 		String expected =
 			"package foo.bar;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Blah extends DuelView {\n\n"+
 			"\tpublic Blah() {\n"+
 		String expected =
 			"package foo.bar;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Blah extends DuelView {\n\n"+
 			"\tpublic Blah() {\n"+
 		String expected =
 			"package foo.bar;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Blah extends DuelView {\n\n"+
 			"\tpublic Blah() {\n"+
 		String expected =
 			"package com.example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Foo extends DuelView {\n\n"+
 			"\tpublic Foo() {\n"+
 		String expected =
 			"package com.example;\n\n"+
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class Foo extends DuelView {\n\n"+
 			"\tpublic Foo() {\n"+
 
 		String expected =
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class foo extends DuelView {\n\n"+
 			"\tpublic foo() {\n"+
 
 		String expected =
 			"import java.io.*;\n"+
-//			"import java.util.*;\n"+
-//			"import java.util.Map.Entry;\n"+
 			"import org.duelengine.duel.*;\n\n"+
 			"public class foo extends DuelView {\n\n"+
 			"\tpublic foo() {\n"+