mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Remove unused double parsing function
This commit is contained in:
1 file changed
-11
@@ -80,17 +80,6 @@ public abstract class Node implements Executable {
|
|||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Optional<Double> parseDoubleArg(@NotNull String[] args, int index) {
|
|
||||||
try {
|
|
||||||
if (args.length > index) {
|
|
||||||
return Optional.of(Double.parseDouble(args[index]));
|
|
||||||
}
|
|
||||||
} catch (NumberFormatException e) {
|
|
||||||
return Optional.empty();
|
|
||||||
}
|
|
||||||
return Optional.empty();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected Optional<Double> parseCoordinateArg(@NotNull String[] args, int index, double relativeTo) {
|
protected Optional<Double> parseCoordinateArg(@NotNull String[] args, int index, double relativeTo) {
|
||||||
try {
|
try {
|
||||||
if (args.length > index) {
|
if (args.length > index) {
|
||||||
|
|||||||
Reference in new issue
Block a user