Removed ChannelBuffer.readBytes() which is useless
This commit is contained in:
parent
88b7cf3e36
commit
b33bbf7da7
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user