Author: markt Date: Tue Feb 19 20:44:39 2013 New Revision: 1447911 URL: http://svn.apache.org/r1447911 Log: Remove unused code
Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java?rev=1447911&r1=1447910&r2=1447911&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java Tue Feb 19 20:44:39 2013 @@ -36,21 +36,6 @@ import org.xml.sax.Attributes; public class SetPropertiesRule extends Rule { - // ----------------------------------------------------- Instance Variables - - /** - * Attribute names used to override natural attribute->property mapping - */ - private String [] attributeNames; - /** - * Property names used to override natural attribute->property mapping - */ - private String [] propertyNames; - - - // --------------------------------------------------------- Public Methods - - /** * Process the beginning of this element. * @@ -78,16 +63,6 @@ public class SetPropertiesRule extends R } } - // set up variables for custom names mappings - int attNamesLength = 0; - if (attributeNames != null) { - attNamesLength = attributeNames.length; - } - int propNamesLength = 0; - if (propertyNames != null) { - propNamesLength = propertyNames.length; - } - for (int i = 0; i < attributes.getLength(); i++) { String name = attributes.getLocalName(i); if ("".equals(name)) { @@ -95,22 +70,6 @@ public class SetPropertiesRule extends R } String value = attributes.getValue(i); - // we'll now check for custom mappings - for (int n = 0; n<attNamesLength; n++) { - if (name.equals(attributeNames[n])) { - if (n < propNamesLength) { - // set this to value from list - name = propertyNames[n]; - - } else { - // set name to null - // we'll check for this later - name = null; - } - break; - } - } - if (digester.log.isDebugEnabled()) { digester.log.debug("[SetPropertiesRule]{" + digester.match + "} Setting property '" + name + "' to '" + --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org