From: rjung Date: Mon, 20 Jun 2011 19:01:14 +0000 (+0000) Subject: Remove unused code. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b201eb7a8409eef61fc6112b24bd29d4f9c52a71;p=tomcat7.0 Remove unused code. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1137746 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/valves/AccessLogValve.java b/java/org/apache/catalina/valves/AccessLogValve.java index c29532ffd..2207b8c24 100644 --- a/java/org/apache/catalina/valves/AccessLogValve.java +++ b/java/org/apache/catalina/valves/AccessLogValve.java @@ -155,14 +155,6 @@ public class AccessLogValve extends ValveBase implements AccessLog { /** - * The set of month abbreviations for log messages. - */ - protected static final String months[] = - { "Jan", "Feb", "Mar", "Apr", "May", "Jun", - "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; - - - /** * enabled this component */ protected boolean enabled = true; @@ -908,24 +900,6 @@ public class AccessLogValve extends ValveBase implements AccessLog { /** - * Return the month abbreviation for the specified month, which must - * be a two-digit String. - * - * @param month Month number ("01" .. "12"). - */ - private static String lookup(String month) { - int index; - try { - index = Integer.parseInt(month) - 1; - } catch (Throwable t) { - ExceptionUtils.handleThrowable(t); - index = 0; // Can not happen, in theory - } - return (months[index]); - } - - - /** * Open the new log file for the date specified by dateStamp. */ protected synchronized void open() {