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.
This commit is contained in:
Jason Tedor 2017-05-23 09:32:48 -04:00
parent c179c6a4c9
commit a85c1bcede
1 changed files with 0 additions and 9 deletions

View File

@ -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<IndicesService> indicesServices) throws Exception {
for (IndicesService indicesService : indicesServices) {
assertBusy(() -> assertFalse(indicesService.iterator().hasNext()), 1, TimeUnit.MINUTES);