Remove unused method

This commit is contained in:
TheMode 2021-07-18 16:36:09 +02:00
parent 22ac1c4998
commit cc1719c3c1

View File

@ -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 <T> the array type
*/
public static <T> void fill(@NotNull T[] array, @NotNull Supplier<T> 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) {