From a85c1bcede8cff6932b1cc2075abccb65e7a4633 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 23 May 2017 09:32:48 -0400 Subject: [PATCH] Remove unused assertions enabled method This commit removes an unused assertions enabled method in ESTestCase. For future uses of such a method, use the field ENABLED in org.elasticsearch.Assertions. --- .../src/main/java/org/elasticsearch/test/ESTestCase.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java index 3c150c17e1b..f7f641c6a29 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java @@ -997,15 +997,6 @@ public abstract class ESTestCase extends LuceneTestCase { } } - /** - * Returns true iff assertions for elasticsearch packages are enabled - */ - public static boolean assertionsEnabled() { - boolean enabled = false; - assert (enabled = true); - return enabled; - } - public void assertAllIndicesRemovedAndDeletionCompleted(Iterable indicesServices) throws Exception { for (IndicesService indicesService : indicesServices) { assertBusy(() -> assertFalse(indicesService.iterator().hasNext()), 1, TimeUnit.MINUTES);