mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-15 23:26:21 +01:00
Remove unused method
This commit is contained in:
parent
22ac1c4998
commit
cc1719c3c1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user