From 1c73be21fca57474c8fb1db61e32c311ebd4beff Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 8 Oct 2013 07:21:01 +0200 Subject: [PATCH] Remove redundant index check --- buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java b/buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java index 007b944bea..cb56630e7e 100644 --- a/buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java +++ b/buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java @@ -1078,9 +1078,6 @@ public class CompositeByteBuf extends AbstractReferenceCountedByteBuf { assert !freed; checkIndex(offset); - assert !freed; - checkIndex(offset); - for (int low = 0, high = components.size(); low <= high;) { int mid = low + high >>> 1; Component c = components.get(mid);