Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/nio/ChannelEndPoint.java @ 1049:4afdf0f0c5bc
remove unused JBuffer methods
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 23:34:48 -0700 |
parents | 2b769da7f67d |
children | 4a50422596b6 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/ChannelEndPoint.java Mon Nov 07 23:15:42 2016 -0700 +++ b/src/org/eclipse/jetty/io/nio/ChannelEndPoint.java Mon Nov 07 23:34:48 2016 -0700 @@ -168,9 +168,8 @@ { if (_ishut) return -1; - JBuffer nbuf = buffer.buffer(); int len = 0; - final ByteBuffer bbuf = nbuf.getByteBuffer(); + final ByteBuffer bbuf = buffer.getByteBuffer(); //noinspection SynchronizationOnLocalVariableOrMethodParameter try @@ -221,9 +220,8 @@ @Override public int flush(JBuffer buffer) throws IOException { - JBuffer nbuf = buffer.buffer(); int len=0; - final ByteBuffer bbuf = nbuf.getByteBuffer().asReadOnlyBuffer(); + final ByteBuffer bbuf = buffer.getByteBuffer().asReadOnlyBuffer(); try { bbuf.position(buffer.getIndex()); @@ -243,14 +241,11 @@ { int length=0; - JBuffer buf0 = header==null?null:header.buffer(); - JBuffer buf1 = buffer==null?null:buffer.buffer(); - if (_channel instanceof GatheringByteChannel && header!=null && header.remaining()!=0 && buffer!=null && buffer.remaining()!=0) { - length = gatheringFlush(header,buf0.getByteBuffer(),buffer,buf1.getByteBuffer()); + length = gatheringFlush(header,header.getByteBuffer(),buffer,buffer.getByteBuffer()); } else {