Remove method I didn't end up needing

This commit is contained in:
Dustin 2022-02-05 10:53:32 -07:00
parent 193ece6d18
commit 35c9788695

View file

@ -565,22 +565,4 @@ public final class ParsableByteArray {
position += length;
return value;
}
/**
* The data from the end of the buffer is copied to the front
* The limit() because the bytesLeft() and position is zero
*/
public void compact() {
if (bytesLeft() == 0) {
limit = 0;
} else {
final ByteBuffer byteBuffer = ByteBuffer.wrap(data);
byteBuffer.limit(limit);
byteBuffer.position(position);
byteBuffer.compact();
byteBuffer.flip();
limit = byteBuffer.limit();
}
position = 0;
}
}