Przeglądaj źródła

Remove unused method introduced in #113194 (#116793) (#116807)

(cherry picked from commit 25223dddae51e0b1345b4330d012e4ce507de634)
Carlos Delgado 11 miesięcy temu
rodzic
commit
809fd9e7d7

+ 0 - 7
server/src/main/java/org/elasticsearch/threadpool/ThreadPool.java

@@ -1086,13 +1086,6 @@ public class ThreadPool implements ReportingService<ThreadPoolInfo>, Scheduler {
         return true;
     }
 
-    public static boolean assertTestThreadPool() {
-        final var threadName = Thread.currentThread().getName();
-        final var executorName = EsExecutors.executorName(threadName);
-        assert threadName.startsWith("TEST-") || threadName.startsWith("LuceneTestCase") : threadName + " is not a test thread";
-        return true;
-    }
-
     public static boolean assertInSystemContext(ThreadPool threadPool) {
         final var threadName = Thread.currentThread().getName();
         assert threadName.startsWith("TEST-") || threadName.startsWith("LuceneTestCase") || threadPool.getThreadContext().isSystemContext()