From 4be652ad0443cec7f835deac5dcfc13eca8f2134 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 19 Feb 2010 01:13:38 +0000 Subject: [PATCH] Removed an unused method in ReadBufferPool --- .../jboss/netty/channel/socket/nio/ReadBufferPool.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/org/jboss/netty/channel/socket/nio/ReadBufferPool.java b/src/main/java/org/jboss/netty/channel/socket/nio/ReadBufferPool.java index 14979024aa..18f23ece7e 100644 --- a/src/main/java/org/jboss/netty/channel/socket/nio/ReadBufferPool.java +++ b/src/main/java/org/jboss/netty/channel/socket/nio/ReadBufferPool.java @@ -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 The Netty Project * @author Trustin Lee @@ -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[] pool = this.pool; for (int i = 0; i < POOL_SIZE; i ++) {