This is an automated email from the git hooks/post-receive script. New commit to annotated tag v2.0.0-beta-1 in repository jaxx. See https://gitlab.nuiton.org/nuiton/jaxx.git commit e142a7a6a1fa7306253dd9bedbd3041908f55833 Author: Tony Chemit <chemit@codelutin.com> Date: Mon Oct 26 02:36:35 2009 +0000 remove commented unused code --- .../src/main/java/jaxx/compiler/script/ScriptManager.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/jaxx-compiler/src/main/java/jaxx/compiler/script/ScriptManager.java b/jaxx-compiler/src/main/java/jaxx/compiler/script/ScriptManager.java index 0a1697b..9db1829 100644 --- a/jaxx-compiler/src/main/java/jaxx/compiler/script/ScriptManager.java +++ b/jaxx-compiler/src/main/java/jaxx/compiler/script/ScriptManager.java @@ -49,7 +49,6 @@ public class ScriptManager { script = trimScript(script); StringBuffer result = new StringBuffer(); JavaParser p = new JavaParser(new StringReader(script)); - //JavaParser p = new JavaParser(new StringReader(script + ";")); while (!p.Line()) { SimpleNode node = p.popNode(); if (node != null) { @@ -186,7 +185,6 @@ public class ScriptManager { } compiler.appendBodyCode(modifiers + " " + node.getText().substring(0, node.getText().length() - 1) + code + "}"); - //compiler.bodyCode.append(";\n"); } private void scanScriptNode(SimpleNode node) throws CompilerException { @@ -239,7 +237,6 @@ public class ScriptManager { } } compiler.appendBodyCode(node.getText()); - //compiler.bodyCode.append(";\n"); compiler.addScriptMethod(new MethodDescriptor(name, Modifier.PUBLIC, returnType, parameterTypes.toArray(new String[parameterTypes.size()]), compiler.getClassLoader())); } else if (nodeType == JavaParserTreeConstants.JJTCLASSORINTERFACEDECLARATION || nodeType == JavaParserTreeConstants.JJTINITIALIZER) { @@ -248,7 +245,6 @@ public class ScriptManager { str += ";"; } compiler.appendBodyCode(str); - //compiler.bodyCode.append(";\n"); } else if (nodeType == JavaParserTreeConstants.JJTCONSTRUCTORDECLARATION) { processConstructor(node.getChild(0).getChild(0).getText(), node.getChild(0).getChild(1)); } else if (nodeType == JavaParserTreeConstants.JJTLOCALVARIABLEDECLARATION || nodeType == JavaParserTreeConstants.JJTFIELDDECLARATION) { @@ -276,7 +272,6 @@ public class ScriptManager { String type = TagManager.resolveClassName(className, compiler); compiler.addScriptField(new FieldDescriptor(name, Modifier.PUBLIC, type, compiler.getClassLoader())); // TODO: determine the actual modifiers if (equals != -1 && !isFinal && !isStatic) { // declare the field in the class body, but wait to actually initialize it - //compiler.bodyCode.append(text.substring(0, equals).trim()); compiler.appendBodyCode(text.substring(0, equals).trim() + ";"); String initializer = text.substring(equals + 1).trim(); if (type.endsWith("[]")) { @@ -294,7 +289,6 @@ public class ScriptManager { compiler.appendBodyCode(text); } compiler.appendBodyCode("\n"); - //compiler.bodyCode.append(";\n"); } else { String text = node.getText().trim(); if (text.length() > 0) { @@ -302,14 +296,12 @@ public class ScriptManager { text += ";"; } compiler.appendInitializerCode(text); - //compiler.initializer.append(";\n"); } } } public void registerScript(String script) throws CompilerException { JavaParser p = new JavaParser(new StringReader(script)); - //JavaParser p = new JavaParser(new StringReader(script + ";")); while (!p.Line()) { SimpleNode node = p.popNode(); if (node != null) { -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.