Skip to content

Commit f3c2b43

Browse files
committed
Simplify cancel methods cache
1 parent 5484aae commit f3c2b43

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/net/tascalate/concurrent/SharedFunctions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ static <T> Supplier<T> supply(T value) {
100100
}
101101

102102
static void iif(boolean v) {}
103+
/*
103104
static <T> void voided(T v) {}
105+
*/
104106

105107
static final Function<Object, Throwable> NO_SUCH_ELEMENT = t -> new NoSuchElementException("Result rejected by filter: " + t);
106108

src/main/java/net/tascalate/concurrent/core/CancelMethodsCache.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.util.concurrent.CancellationException;
2828
import java.util.concurrent.CompletionStage;
2929
import java.util.function.Function;
30-
import java.util.function.Supplier;
3130
import java.util.stream.Stream;
3231

3332
public final class CancelMethodsCache {

0 commit comments

Comments
 (0)