Remove unused code

This commit is contained in:
Julien Viet
2019-11-06 13:48:32 +01:00
parent f4725543bf
commit a0da1387db

View File

@@ -32,13 +32,6 @@ import java.util.concurrent.RejectedExecutionException;
*/
abstract class ContextImpl extends AbstractContext {
static FutureListener<Void> toListenerFuture(ContextInternal context, Handler<AsyncResult<Void>> handler) {
return future -> {
Future<Void> res = future.isSuccess() ? Future.succeededFuture() : Future.failedFuture(future.cause());
context.emitFromIO(res, handler);
};
}
/**
* Execute the {@code task} disabling the thread-local association for the duration
* of the execution. {@link Vertx#currentContext()} will return {@code null},