Skip to content

Commit 71d7344

Browse files
committed
Not used
1 parent 0c34623 commit 71d7344

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/main/java/software/coley/llzip/util/BufferData.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ public final class BufferData implements ByteData {
1414
private final ByteBuffer buffer;
1515
private volatile boolean cleaned;
1616

17-
private BufferData(ByteBuffer buffer, Void slice) {
18-
this.buffer = buffer;
19-
cleaned = true;
20-
}
21-
2217
private BufferData(ByteBuffer buffer) {
2318
this.buffer = buffer;
2419
}
@@ -74,7 +69,7 @@ public void transferTo(OutputStream out, byte[] buf) throws IOException {
7469
@Override
7570
public ByteData slice(long startIndex, long endIndex) {
7671
ensureOpen();
77-
return new BufferData(ByteDataUtil.sliceExact(buffer, validate(startIndex), validate(endIndex)), null);
72+
return new BufferData(ByteDataUtil.sliceExact(buffer, validate(startIndex), validate(endIndex)));
7873
}
7974

8075
@Override

src/main/java/software/coley/llzip/util/UnsafeMappedFile.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ final class UnsafeMappedFile implements ByteData {
1919
private final long address;
2020
private final long end;
2121
private final Runnable deallocator;
22-
private Object attachment;
22+
@SuppressWarnings("unused")
23+
private final Object attachment;
2324

2425
private UnsafeMappedFile(Object attachment, long address, long end) {
2526
this.attachment = attachment;
@@ -32,6 +33,7 @@ private UnsafeMappedFile(Object attachment, long address, long end) {
3233
this.address = address;
3334
this.end = address + length;
3435
this.deallocator = deallocator;
36+
attachment = null;
3537
}
3638

3739
@Override

0 commit comments

Comments
 (0)