This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 4289f4745cd831775abe0c5d1b08c9936889c47f
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jul 21 17:27:12 2021 +0100

    Remove deprecated code
---
 java/org/apache/tomcat/util/threads/TaskQueue.java | 24 ----------------------
 1 file changed, 24 deletions(-)

diff --git a/java/org/apache/tomcat/util/threads/TaskQueue.java 
b/java/org/apache/tomcat/util/threads/TaskQueue.java
index 3aad107..24c0ad6 100644
--- a/java/org/apache/tomcat/util/threads/TaskQueue.java
+++ b/java/org/apache/tomcat/util/threads/TaskQueue.java
@@ -76,30 +76,6 @@ public class TaskQueue extends LinkedBlockingQueue<Runnable> 
{
     }
 
 
-    /**
-     * Used to add a task to the queue if the task has been rejected by the 
Executor.
-     *
-     * @param o         The task to add to the queue
-     * @param timeout   The timeout to use when adding the task
-     * @param unit      The units in which the timeout is expressed
-     *
-     * @return          {@code true} if the task was added to the queue,
-     *                      otherwise {@code false}
-     *
-     * @throws InterruptedException If the call is interrupted before the
-     *                              timeout expires
-     *
-     * @deprecated Unused. Will be removed in Tomcat 10.1.x.
-     */
-    @Deprecated
-    public boolean force(Runnable o, long timeout, TimeUnit unit) throws 
InterruptedException {
-        if (parent == null || parent.isShutdown()) {
-            throw new 
RejectedExecutionException(sm.getString("taskQueue.notRunning"));
-        }
-        return super.offer(o,timeout,unit); //forces the item onto the queue, 
to be used if the task is rejected
-    }
-
-
     @Override
     public boolean offer(Runnable o) {
       //we can't do any checks

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to