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

remove __currentConnection
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 16 Oct 2016 01:31:05 -0600
parents 5ee36654b383
children dbecd7faa1f5
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Response.java	Sun Oct 16 01:14:44 2016 -0600
+++ b/src/org/eclipse/jetty/server/Response.java	Sun Oct 16 01:31:05 2016 -0600
@@ -81,15 +81,6 @@
 	 */
 	public final static String HTTP_ONLY_COMMENT="__HTTP_ONLY__";
 	
-	
-	public static Response getResponse(HttpServletResponse response)
-	{
-		if (response instanceof Response)
-			return (Response)response;
-
-		return AbstractHttpConnection.getCurrentConnection().getResponse();
-	}
-	
 	private final AbstractHttpConnection _connection;
 	private int _status=SC_OK;
 	private String _reason;