Removed Lease.merge() and cleared lists in recycle().

This commit is contained in:
Simone Bordet 2014-06-12 13:51:35 +02:00
parent 116d654426
commit 74bf0000c5
1 changed files with 2 additions and 8 deletions

View File

@ -90,14 +90,6 @@ public interface ByteBufferPool
return buffers;
}
public Lease merge(Lease that)
{
assert byteBufferPool == that.byteBufferPool;
buffers.addAll(that.buffers);
recycles.addAll(that.recycles);
return this;
}
public long getTotalLength()
{
long length = 0;
@ -114,6 +106,8 @@ public interface ByteBufferPool
if (recycles.get(i))
byteBufferPool.release(buffer);
}
buffers.clear();
recycles.clear();
}
}
}