Skip to content

Commit 68ec7ea

Browse files
committed
remove redundant code
1 parent 8e9cedb commit 68ec7ea

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,7 @@ static <T, R> Function<T, R> nullify() {
102102
static <T> Supplier<T> supply(T value) {
103103
return () -> value;
104104
}
105-
106-
static <T, R> Function<T, R> apply(Function<T, R> fn) {
107-
return fn;
108-
}
109-
105+
110106
private static Optional<Boolean> tryCancellation(Function<Class<?>, ExceptionalCancellation> option,
111107
CompletionStage<?> promise,
112108
boolean mayInterruptIfRunning) {

0 commit comments

Comments
 (0)