diff --git a/server/src/main/java/org/elasticsearch/action/support/ListenerTimeouts.java b/server/src/main/java/org/elasticsearch/action/support/ListenerTimeouts.java index a4c66f6e0b541..a4e2121c56aaf 100644 --- a/server/src/main/java/org/elasticsearch/action/support/ListenerTimeouts.java +++ b/server/src/main/java/org/elasticsearch/action/support/ListenerTimeouts.java @@ -68,22 +68,6 @@ public static ActionListener wrapWithTimeout( return wrappedListener; } - /** - * @deprecated Use {@link #wrapWithTimeout(ThreadPool, TimeValue, Executor, ActionListener, Consumer)} instead. - */ - @Deprecated(forRemoval = true) - public static ActionListener wrapWithTimeout( - ThreadPool threadPool, - TimeValue timeout, - String executor, - ActionListener listener, - Consumer> onTimeout - ) { - TimeoutableListener wrappedListener = new TimeoutableListener<>(listener, onTimeout); - wrappedListener.cancellable = threadPool.schedule(wrappedListener, timeout, executor); - return wrappedListener; - } - private static class TimeoutableListener implements ActionListener, Runnable { private final AtomicBoolean isDone = new AtomicBoolean(false);