Skip to content

Commit a805f20

Browse files
committed
Remove unused method introduced in elastic#113194
1 parent e2e8a46 commit a805f20

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

server/src/main/java/org/elasticsearch/threadpool/ThreadPool.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,13 +1062,6 @@ public static boolean assertCurrentThreadPool(String... permittedThreadPoolNames
10621062
return true;
10631063
}
10641064

1065-
public static boolean assertTestThreadPool() {
1066-
final var threadName = Thread.currentThread().getName();
1067-
final var executorName = EsExecutors.executorName(threadName);
1068-
assert threadName.startsWith("TEST-") || threadName.startsWith("LuceneTestCase") : threadName + " is not a test thread";
1069-
return true;
1070-
}
1071-
10721065
public static boolean assertInSystemContext(ThreadPool threadPool) {
10731066
final var threadName = Thread.currentThread().getName();
10741067
assert threadName.startsWith("TEST-") || threadName.startsWith("LuceneTestCase") || threadPool.getThreadContext().isSystemContext()

0 commit comments

Comments
 (0)