From: rjung Date: Fri, 24 Jun 2011 05:33:35 +0000 (+0000) Subject: Remove dead code and correct comment about X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=64e594b973de24645524f588244a59493a0d1859;p=tomcat7.0 Remove dead code and correct comment about thread-safetyness. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1139157 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/juli/DateFormatCache.java b/java/org/apache/juli/DateFormatCache.java index 6e47633ab..e8d04b774 100644 --- a/java/org/apache/juli/DateFormatCache.java +++ b/java/org/apache/juli/DateFormatCache.java @@ -37,6 +37,9 @@ import java.util.TimeZone; *

The cache is not threadsafe. It can be used without synchronization * via thread local instances, or with synchronization as a global cache.

* + *

The cache can be created with a parent cache to build a cache hierarchy. + * Access to the parent cache is threadsafe.

+ * * @version $Id$ */ @@ -53,9 +56,6 @@ public class DateFormatCache { private DateFormatCache parent; private Cache cache; - /* Cache type, "parent" or "child" */ - private String type; - /** * Replace the millisecond formatting character 'S' by * some dummy characters in order to make the resulting @@ -83,11 +83,6 @@ public class DateFormatCache { } public DateFormatCache(int size, String format, DateFormatCache parent) { - if (parent == null) { - type = "main"; - } else { - type = "child"; - } cacheSize = size; this.format = tidyFormat(format); this.parent = parent;