Removed an unused method in ReadBufferPool
This commit is contained in:
parent
558c02b0df
commit
4be652ad04
@ -18,8 +18,6 @@ package org.jboss.netty.channel.socket.nio;
|
||||
import java.lang.ref.SoftReference;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
import org.jboss.netty.buffer.ChannelBuffer;
|
||||
|
||||
/**
|
||||
* @author <a href="http://www.jboss.org/netty/">The Netty Project</a>
|
||||
* @author <a href="http://gleamynode.net/">Trustin Lee</a>
|
||||
@ -36,13 +34,6 @@ final class ReadBufferPool {
|
||||
super();
|
||||
}
|
||||
|
||||
final ByteBuffer acquire(ChannelBuffer src) {
|
||||
ByteBuffer dst = acquire(src.readableBytes());
|
||||
src.getBytes(src.readerIndex(), dst);
|
||||
dst.rewind();
|
||||
return dst;
|
||||
}
|
||||
|
||||
final ByteBuffer acquire(int size) {
|
||||
final SoftReference<ByteBuffer>[] pool = this.pool;
|
||||
for (int i = 0; i < POOL_SIZE; i ++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user