From cc1719c3c184c916964d3372da803c3fac603ac3 Mon Sep 17 00:00:00 2001 From: TheMode Date: Sun, 18 Jul 2021 16:36:09 +0200 Subject: [PATCH] Remove unused method --- .../java/net/minestom/server/utils/ArrayUtils.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/net/minestom/server/utils/ArrayUtils.java b/src/main/java/net/minestom/server/utils/ArrayUtils.java index badc669eb..7efc02f6d 100644 --- a/src/main/java/net/minestom/server/utils/ArrayUtils.java +++ b/src/main/java/net/minestom/server/utils/ArrayUtils.java @@ -88,19 +88,6 @@ public final class ArrayUtils { return true; } - /** - * Fills an array using a supplier. - * - * @param array the array to fill - * @param supplier the supplier to fill the array - * @param the array type - */ - public static void fill(@NotNull T[] array, @NotNull Supplier supplier) { - for (int i = 0; i < array.length; i++) { - array[i] = supplier.get(); - } - } - public static boolean empty(byte[] array) { for (byte b : array) { if (b != 0) {