From: <fwi...@us...> - 2009-10-26 19:34:53
|
Revision: 6905 http://jython.svn.sourceforge.net/jython/?rev=6905&view=rev Author: fwierzbicki Date: 2009-10-26 19:34:45 +0000 (Mon, 26 Oct 2009) Log Message: ----------- Remove unused imports and fields. Reduce visibility of parse and makeStrings. Modified Paths: -------------- trunk/jython/src/org/python/compiler/CodeCompiler.java Modified: trunk/jython/src/org/python/compiler/CodeCompiler.java =================================================================== --- trunk/jython/src/org/python/compiler/CodeCompiler.java 2009-10-26 06:38:28 UTC (rev 6904) +++ trunk/jython/src/org/python/compiler/CodeCompiler.java 2009-10-26 19:34:45 UTC (rev 6905) @@ -93,7 +93,6 @@ import org.python.core.PyTuple; import org.python.core.PyUnicode; import org.python.core.ThreadState; -import org.objectweb.asm.ClassWriter; import org.objectweb.asm.Label; import org.objectweb.asm.Opcodes; import org.objectweb.asm.Type; @@ -104,15 +103,8 @@ private static final Object Exit = new Integer(1); private static final Object NoExit = null; - private static final int GET = 0; - private static final int SET = 1; - private static final int DEL = 2; - private static final int AUGGET = 3; - private static final int AUGSET = 4; private Module module; - private ClassWriter cw; private Code code; - private CodeCompiler mrefs; private CompilerFlags cflags; private int temporary; private expr_contextType augmode; @@ -148,9 +140,6 @@ this.module = module; this.print_results = print_results; - mrefs = this; - cw = module.classfile.cw; - continueLabels = new Stack<Label>(); breakLabels = new Stack<Label>(); exceptionHandlers = new Stack<ExceptionHandler>(); @@ -262,7 +251,7 @@ return fast_locals && !scope.exec && !scope.from_import_star; } - public void parse(mod node, Code code, + void parse(mod node, Code code, boolean fast_locals, String className, boolean classBody, ScopeInfo scope, CompilerFlags cflags) throws Exception { @@ -1631,7 +1620,7 @@ return null; } - public static int makeStrings(Code c, Collection<String> names) + static int makeStrings(Code c, Collection<String> names) throws IOException { if (names != null) { c.iconst(names.size()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |