Author: markt Date: Wed Sep 10 20:47:40 2014 New Revision: 1624122 URL: http://svn.apache.org/r1624122 Log: Remove unused code (LocalVariableTable)
Removed: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/LocalVariableTable.java Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java?rev=1624122&r1=1624121&r2=1624122&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java Wed Sep 10 20:47:40 2014 @@ -32,7 +32,6 @@ import org.apache.tomcat.util.bcel.Const * attribute stands for non-standard-attributes. * * @author <A HREF="mailto:m.d...@gmx.de">M. Dahm</A> - * @see LocalVariableTable * @see InnerClasses * @see Deprecated */ @@ -112,8 +111,8 @@ public abstract class Attribute implemen Utility.swallowLineNumberTable(file); return null; case Constants.ATTR_LOCAL_VARIABLE_TABLE: - return new LocalVariableTable(name_index, length, file, - constant_pool); + Utility.swallowLocalVariableTable(file); + return null; case Constants.ATTR_INNER_CLASSES: return new InnerClasses(name_index, length, file, constant_pool); case Constants.ATTR_SYNTHETIC: Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java?rev=1624122&r1=1624121&r2=1624122&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java Wed Sep 10 20:47:40 2014 @@ -232,4 +232,11 @@ final class Utility { Utility.swallowLineNumber(file); } } + + static void swallowLocalVariableTable(DataInput file) throws IOException { + int local_variable_table_length = (file.readUnsignedShort()); + for (int i = 0; i < local_variable_table_length; i++) { + Utility.swallowLocalVariable(file); + } + } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org