Author: markt Date: Wed Sep 10 20:25:59 2014 New Revision: 1624112 URL: http://svn.apache.org/r1624112 Log: Remove unused code (ConstantValue)
Removed: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantValue.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=1624112&r1=1624111&r2=1624112&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:25:59 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 ConstantValue * @see Code * @see ExceptionTable * @see LineNumberTable @@ -101,7 +100,8 @@ public abstract class Attribute implemen Utility.swallowUnknownAttribute(file, length); return null; case Constants.ATTR_CONSTANT_VALUE: - return new ConstantValue(name_index, length, file, constant_pool); + Utility.swallowConstantValue(file); + return null; case Constants.ATTR_SOURCE_FILE: Utility.swallowSourceFile(file); return null; 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=1624112&r1=1624111&r2=1624112&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:25:59 2014 @@ -192,4 +192,8 @@ final class Utility { static void swallowSourceFile(DataInput file) throws IOException { file.readUnsignedShort(); // Unused sourcefile_index } + + static void swallowConstantValue(DataInput file) throws IOException { + file.readUnsignedShort(); // Unused constantvalue_index + } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org