Skip to content

Commit

Permalink
Remove an unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Oct 23, 2023
1 parent a06c140 commit 01bedaf
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/com/amazon/ion/impl/bin/WriteBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,27 +157,6 @@ private void writeBytesSlow(final byte[] bytes, int off, int len)

}

/**
* Adds all-zero bytes. Useful for padding a FixedInt where the minimum needed to represent the value is
* less than the required number of bytes in the spec.
*/
private void writeZeroBytes(int len) {
if (len < remaining()) {
current.limit += len;
} else do {
final int amount = Math.min(len, current.remaining());
current.limit += amount;
len -= amount;
if (current.remaining() == 0) {
if (index == blocks.size() - 1) {
allocateNewBlock();
}
index++;
current = blocks.get(index);
}
} while (len > 0);
}

/** Writes an array of bytes to the buffer expanding if necessary. */
public void writeBytes(final byte[] bytes, final int off, final int len)
{
Expand Down

0 comments on commit 01bedaf

Please sign in to comment.