Skip to content

Commit

Permalink
Not used
Browse files Browse the repository at this point in the history
  • Loading branch information
xxDark committed May 21, 2022
1 parent 0c34623 commit 71d7344
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/main/java/software/coley/llzip/util/BufferData.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ public final class BufferData implements ByteData {
private final ByteBuffer buffer;
private volatile boolean cleaned;

private BufferData(ByteBuffer buffer, Void slice) {
this.buffer = buffer;
cleaned = true;
}

private BufferData(ByteBuffer buffer) {
this.buffer = buffer;
}
Expand Down Expand Up @@ -74,7 +69,7 @@ public void transferTo(OutputStream out, byte[] buf) throws IOException {
@Override
public ByteData slice(long startIndex, long endIndex) {
ensureOpen();
return new BufferData(ByteDataUtil.sliceExact(buffer, validate(startIndex), validate(endIndex)), null);
return new BufferData(ByteDataUtil.sliceExact(buffer, validate(startIndex), validate(endIndex)));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ final class UnsafeMappedFile implements ByteData {
private final long address;
private final long end;
private final Runnable deallocator;
private Object attachment;
@SuppressWarnings("unused")
private final Object attachment;

private UnsafeMappedFile(Object attachment, long address, long end) {
this.attachment = attachment;
Expand All @@ -32,6 +33,7 @@ private UnsafeMappedFile(Object attachment, long address, long end) {
this.address = address;
this.end = address + length;
this.deallocator = deallocator;
attachment = null;
}

@Override
Expand Down

0 comments on commit 71d7344

Please sign in to comment.