Skip to content

Commit 6adbe36

Browse files
committed
Remove unused method introduced in elastic#113194 (elastic#116793)
(cherry picked from commit 25223dd)
1 parent 161b7ef commit 6adbe36

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
@@ -1086,13 +1086,6 @@ public static boolean assertCurrentThreadPool(String... permittedThreadPoolNames
10861086
return true;
10871087
}
10881088

1089-
public static boolean assertTestThreadPool() {
1090-
final var threadName = Thread.currentThread().getName();
1091-
final var executorName = EsExecutors.executorName(threadName);
1092-
assert threadName.startsWith("TEST-") || threadName.startsWith("LuceneTestCase") : threadName + " is not a test thread";
1093-
return true;
1094-
}
1095-
10961089
public static boolean assertInSystemContext(ThreadPool threadPool) {
10971090
final var threadName = Thread.currentThread().getName();
10981091
assert threadName.startsWith("TEST-") || threadName.startsWith("LuceneTestCase") || threadPool.getThreadContext().isSystemContext()

0 commit comments

Comments
 (0)