diff --git a/codec/src/main/java/io/netty/handler/codec/ByteToByteEncoder.java b/codec/src/main/java/io/netty/handler/codec/ByteToByteEncoder.java index 55ef2ac98f..4364f9c1ca 100644 --- a/codec/src/main/java/io/netty/handler/codec/ByteToByteEncoder.java +++ b/codec/src/main/java/io/netty/handler/codec/ByteToByteEncoder.java @@ -27,7 +27,6 @@ public abstract class ByteToByteEncoder extends ChannelOutboundByteHandlerAdapte ByteBuf in = ctx.outboundByteBuffer(); ByteBuf out = ctx.nextOutboundByteBuffer(); - int oldOutSize = out.readableBytes(); while (in.readable()) { int oldInSize = in.readableBytes(); try {