jetty-9 - Removed dead code.

This commit is contained in:
Simone Bordet 2012-09-17 16:21:32 +02:00
parent 0915b2b0ab
commit 89852e0bc8
1 changed files with 6 additions and 11 deletions

View File

@ -67,7 +67,7 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
{ {
__currentConnection.set(connection); __currentConnection.set(connection);
} }
public HttpChannelConfig getHttpChannelConfig() public HttpChannelConfig getHttpChannelConfig()
{ {
return _config; return _config;
@ -128,7 +128,7 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
_generator.reset(); _generator.reset();
_channel.reset(); _channel.reset();
releaseRequestBuffer(); releaseRequestBuffer();
if (_chunk!=null) if (_chunk!=null)
{ {
@ -136,8 +136,8 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
_chunk=null; _chunk=null;
} }
} }
@Override @Override
public int getMessagesIn() public int getMessagesIn()
{ {
@ -187,9 +187,9 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
{ {
while (true) while (true)
{ {
// Can the parser progress (even with an empty buffer) // Can the parser progress (even with an empty buffer)
boolean event=_parser.parseNext(_requestBuffer==null?BufferUtil.EMPTY_BUFFER:_requestBuffer); boolean event=_parser.parseNext(_requestBuffer==null?BufferUtil.EMPTY_BUFFER:_requestBuffer);
// If there is a request buffer, we are re-entering here // If there is a request buffer, we are re-entering here
if (!event && BufferUtil.isEmpty(_requestBuffer)) if (!event && BufferUtil.isEmpty(_requestBuffer))
{ {
@ -500,11 +500,6 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
{ {
fillInterested(); fillInterested();
} }
// return if the connection has been changed
if (getEndPoint().getConnection() != this)
return;
} }