From 0b67aff1409d238f8e4c5462648cbc21cb36d368 Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 16 Jan 2011 16:16:21 +0000 Subject: [PATCH] Remove unused code git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1059598 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/catalina/ha/session/DeltaSession.java | 58 ---------------------- 1 file changed, 58 deletions(-) diff --git a/java/org/apache/catalina/ha/session/DeltaSession.java b/java/org/apache/catalina/ha/session/DeltaSession.java index 184dcff9e..2c271d5f0 100644 --- a/java/org/apache/catalina/ha/session/DeltaSession.java +++ b/java/org/apache/catalina/ha/session/DeltaSession.java @@ -27,16 +27,11 @@ import java.io.ObjectOutputStream; import java.io.Serializable; import java.security.Principal; import java.util.ArrayList; -import java.util.Enumeration; -import java.util.HashMap; import java.util.Hashtable; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantReadWriteLock; -import javax.servlet.http.HttpSession; -import javax.servlet.http.HttpSessionContext; - import org.apache.catalina.Manager; import org.apache.catalina.SessionListener; import org.apache.catalina.ha.CatalinaCluster; @@ -49,7 +44,6 @@ import org.apache.catalina.session.StandardManager; import org.apache.catalina.session.StandardSession; import org.apache.catalina.tribes.io.ReplicationStream; import org.apache.catalina.tribes.tipis.ReplicatedMapEntry; -import org.apache.catalina.util.Enumerator; import org.apache.tomcat.util.res.StringManager; /** @@ -817,55 +811,3 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus if ( accessCount != null ) super.accessCount.set(count); } } - -// -------------------------------------------------------------- Private Class - -/** - * This class is a dummy implementation of the HttpSessionContext - * interface, to conform to the requirement that such an object be returned when - * HttpSession.getSessionContext() is called. - * - * @author Craig R. McClanahan - * - * @deprecated As of Java Servlet API 2.1 with no replacement. The interface - * will be removed in a future version of this API. - */ - -@Deprecated -final class StandardSessionContext - implements HttpSessionContext { - - private HashMap dummy = new HashMap(); - - /** - * Return the session identifiers of all sessions defined within this - * context. - * - * @deprecated As of Java Servlet API 2.1 with no replacement. This method - * must return an empty Enumeration and will be - * removed in a future version of the API. - */ - @Override - @Deprecated - public Enumeration getIds() { - return (new Enumerator(dummy)); - } - - /** - * Return the HttpSession associated with the specified - * session identifier. - * - * @param id - * Session identifier for which to look up a session - * - * @deprecated As of Java Servlet API 2.1 with no replacement. This method - * must return null and will be removed in a future version of - * the API. - */ - @Override - @Deprecated - public HttpSession getSession(String id) { - return (null); - } - -} -- 2.11.0