Author: markt Date: Wed Sep 10 21:01:15 2014 New Revision: 1624130 URL: http://svn.apache.org/r1624130 Log: Remove unused code (PMGClass)
Removed: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/PMGClass.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=1624130&r1=1624129&r2=1624130&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 21:01:15 2014 @@ -121,7 +121,8 @@ public abstract class Attribute implemen Utility.swallowDeprecated(length); return null; case Constants.ATTR_PMG: - return new PMGClass(name_index, length, file, constant_pool); + Utility.swallowPMCClass(file); + return null; case Constants.ATTR_SIGNATURE: Utility.swallowSignature(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=1624130&r1=1624129&r2=1624130&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 21:01:15 2014 @@ -250,4 +250,9 @@ final class Utility { throw new ClassFormatException("Deprecated attribute with length > 0"); } } + + static void swallowPMCClass(DataInput file) throws IOException { + file.readUnsignedShort(); // Unused pmg_index + file.readUnsignedShort(); // Unused pmg_class_index + } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org