Removed ChannelBuffer.readBytes() which is useless

This commit is contained in:
Trustin Lee 2008-08-09 23:33:52 +00:00
parent 88b7cf3e36
commit b33bbf7da7
3 changed files with 0 additions and 10 deletions

View File

@ -205,10 +205,6 @@ public abstract class AbstractChannelBuffer implements ChannelBuffer {
return v;
}
public ChannelBuffer readBytes() {
return readBytes(readableBytes());
}
public ChannelBuffer readBytes(int length) {
checkReadableBytes(length);
if (length == 0) {

View File

@ -602,7 +602,6 @@ public interface ChannelBuffer extends Comparable<ChannelBuffer> {
int readInt();
long readLong();
ChannelBuffer readBytes();
ChannelBuffer readBytes(int length);
ChannelBuffer readBytes(ChannelBufferIndexFinder endIndexFinder);
void readBytes(ChannelBuffer dst);

View File

@ -197,11 +197,6 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
return buffer.readByte();
}
public ChannelBuffer readBytes() {
reject();
return null;
}
public void readBytes(byte[] dst, int dstIndex, int length) {
checkReadableBytes(length);
buffer.readBytes(dst, dstIndex, length);