Skip to content

Commit 78760c0

Browse files
committed
Remove redundant methods.
JAVA-5530
1 parent a05882d commit 78760c0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

driver-core/src/main/com/mongodb/internal/async/AsyncRunnable.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,6 @@ default AsyncRunnable thenRunTryCatchAsyncBlocks(
219219
});
220220
}
221221

222-
default <R> AsyncSupplier<R> thenSupplyTryCatchAsyncBlocks(
223-
final AsyncSupplier<R> supplier,
224-
final Predicate<Throwable> errorCheck,
225-
final AsyncFunction<Throwable, R> errorFunction) {
226-
return this.thenSupply(c -> {
227-
beginAsync()
228-
.thenSupply(supplier)
229-
.onErrorIf(errorCheck, errorFunction)
230-
.finish(c);
231-
});
232-
}
233-
234222
/**
235223
* @param condition the condition to check
236224
* @param runnable The async runnable to run after this runnable,

0 commit comments

Comments
 (0)