diff src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 977:d35b0a3a7a4a

remove __currentConnection
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 16 Oct 2016 01:31:05 -0600
parents 7422ca1ae146
children c8cd3e96db5f
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Sun Oct 16 01:14:44 2016 -0600
+++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Sun Oct 16 01:31:05 2016 -0600
@@ -93,8 +93,6 @@
 {
 	private static final Logger LOG = LoggerFactory.getLogger(AbstractHttpConnection.class);
 
-	private static final ThreadLocal<AbstractHttpConnection> __currentConnection = new ThreadLocal<AbstractHttpConnection>();
-
 	private int _requests;
 
 	private final Connector _connector;
@@ -124,16 +122,6 @@
 	private boolean _delayedHandling = false;
 	private boolean _earlyEOF = false;
 
-	public static AbstractHttpConnection getCurrentConnection()
-	{
-		return __currentConnection.get();
-	}
-
-	protected static void setCurrentConnection(AbstractHttpConnection connection)
-	{
-		__currentConnection.set(connection);
-	}
-
 	protected AbstractHttpConnection(Connector connector, EndPoint endpoint)
 	{
 		super(endpoint);