mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-21 23:01:32 +01:00
Remove unnecessary util method
This commit is contained in:
parent
39dd5bfbf9
commit
34d2d5892e
@ -1,6 +1,5 @@
|
|||||||
package net.minestom.server.utils.time;
|
package net.minestom.server.utils.time;
|
||||||
|
|
||||||
import java.time.Duration;
|
|
||||||
import java.time.temporal.ChronoUnit;
|
import java.time.temporal.ChronoUnit;
|
||||||
import java.time.temporal.TemporalUnit;
|
import java.time.temporal.TemporalUnit;
|
||||||
|
|
||||||
@ -20,8 +19,4 @@ public class TimeUnit {
|
|||||||
|
|
||||||
private TimeUnit() {
|
private TimeUnit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static long getMillis(long amount, TemporalUnit unit) {
|
|
||||||
return Duration.of(amount, unit).toMillis();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user