Skip to content

Commit 2fb1af5

Browse files
committed
Remove unused ReferenceQueue methods from jdk21+
Signed-off-by: Peter Shipton <[email protected]>
1 parent 30fa124 commit 2fb1af5

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

jcl/src/java.base/share/classes/java/lang/ref/ReferenceQueue.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -239,31 +239,6 @@ void forEach(java.util.function.Consumer<? super Reference<? extends T>> consume
239239
}
240240

241241
/*[IF JAVA_SPEC_VERSION >= 19]*/
242-
final boolean headIsNull() {
243-
return empty;
244-
}
245-
246-
final Reference<? extends T> poll0() {
247-
return poll();
248-
}
249-
250-
final Reference<? extends T> remove0(long timeout) throws IllegalArgumentException, InterruptedException {
251-
return remove(timeout);
252-
}
253-
254-
final Reference<? extends T> remove0() throws IllegalArgumentException, InterruptedException {
255-
return remove(0L);
256-
}
257-
258-
final boolean enqueue0(Reference reference) {
259-
enqueue(reference);
260-
return true;
261-
}
262-
263-
void signal() {}
264-
void await() throws InterruptedException {}
265-
void await(long timeout) throws InterruptedException {}
266-
267242
ReferenceQueue(int value) {
268243
this();
269244
}

0 commit comments

Comments
 (0)