Removed unused method
This commit is contained in:
parent
36e804bbec
commit
c4a230a582
@ -38,11 +38,9 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
|
|||||||
|
|
||||||
import org.jboss.netty.buffer.ChannelBuffer;
|
import org.jboss.netty.buffer.ChannelBuffer;
|
||||||
import org.jboss.netty.buffer.ChannelBufferFactory;
|
import org.jboss.netty.buffer.ChannelBufferFactory;
|
||||||
import org.jboss.netty.buffer.CompositeChannelBuffer;
|
|
||||||
import org.jboss.netty.channel.Channel;
|
import org.jboss.netty.channel.Channel;
|
||||||
import org.jboss.netty.channel.ChannelException;
|
import org.jboss.netty.channel.ChannelException;
|
||||||
import org.jboss.netty.channel.ChannelFuture;
|
import org.jboss.netty.channel.ChannelFuture;
|
||||||
import org.jboss.netty.channel.DownstreamMessageEvent;
|
|
||||||
import org.jboss.netty.channel.MessageEvent;
|
import org.jboss.netty.channel.MessageEvent;
|
||||||
import org.jboss.netty.channel.ReceiveBufferSizePredictor;
|
import org.jboss.netty.channel.ReceiveBufferSizePredictor;
|
||||||
import org.jboss.netty.logging.InternalLogger;
|
import org.jboss.netty.logging.InternalLogger;
|
||||||
@ -502,20 +500,6 @@ class NioWorker implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static MessageEvent consolidateComposite(MessageEvent e) {
|
|
||||||
// Convert a composite buffer into a simple buffer to save memory
|
|
||||||
// bandwidth on full write buffer.
|
|
||||||
// This method should be eliminated once gathering write works.
|
|
||||||
Object m = e.getMessage();
|
|
||||||
if (m instanceof CompositeChannelBuffer) {
|
|
||||||
e = new DownstreamMessageEvent(
|
|
||||||
e.getChannel(), e.getFuture(),
|
|
||||||
((CompositeChannelBuffer) m).copy(),
|
|
||||||
e.getRemoteAddress());
|
|
||||||
}
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setOpWrite(NioSocketChannel channel) {
|
private void setOpWrite(NioSocketChannel channel) {
|
||||||
Selector selector = this.selector;
|
Selector selector = this.selector;
|
||||||
SelectionKey key = channel.socket.keyFor(selector);
|
SelectionKey key = channel.socket.keyFor(selector);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user