Skip to content

Commit 610a801

Browse files
committed
Remove unused MultiBuffer.wrap()
1 parent 57d8c60 commit 610a801

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/main/java/com/maxmind/db/MultiBuffer.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -318,22 +318,6 @@ public String decode(CharsetDecoder decoder)
318318
return out.toString();
319319
}
320320

321-
/**
322-
* Wraps the given {@link ByteBuffer}s in a new {@code MultiBuffer}.
323-
*
324-
* <p>All chunks must have size {@link #DEFAULT_CHUNK_SIZE}, except that
325-
* the final chunk may be smaller. The buffers are used directly and not
326-
* copied.
327-
*
328-
* @param chunks the backing buffers
329-
* @return a new {@code MultiBuffer} backed by the given buffers
330-
* @throws IllegalArgumentException if a non-final chunk is smaller than
331-
* {@link #DEFAULT_CHUNK_SIZE}
332-
*/
333-
public static MultiBuffer wrap(ByteBuffer[] chunks) {
334-
return new MultiBuffer(chunks, DEFAULT_CHUNK_SIZE);
335-
}
336-
337321
/**
338322
* Creates a read-only {@code MultiBuffer} by memory-mapping the given
339323
* {@link FileChannel}.

0 commit comments

Comments
 (0)