diff --git a/src/main/java/com/troblecodings/signals/signalbox/Point.java b/src/main/java/com/troblecodings/signals/signalbox/Point.java index 5a8262b0c..6f7ac1669 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/Point.java +++ b/src/main/java/com/troblecodings/signals/signalbox/Point.java @@ -47,28 +47,6 @@ public void translate(final int x, final int y) { this.y += y; } - public Point translate(final Rotation rotation) { - final Point point = new Point(this); - switch (rotation) { - case NONE: { - point.x += 1; - break; - } - case CLOCKWISE_90: { - point.y -= 1; - break; - } - case CLOCKWISE_180: { - point.x -= 1; - break; - } - case COUNTERCLOCKWISE_90: { - point.y += 1; - } - } - return point; - } - public Point delta(final Point other) { final Point point = new Point(this); point.translate(-other.getX(), -other.getY()); diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxNode.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxNode.java index fd3874cf6..2af4ebf72 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxNode.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxNode.java @@ -289,18 +289,6 @@ public PathwayRequestResult canMakePath(final Path path, final PathType type) { return PathwayRequestResult.PASS; } - public Point getStartPoint(final PathType type) { - for (final EnumGuiMode mode : type.getModes()) { - for (final Rotation rotation : Rotation.values()) { - final ModeSet modeSet = new ModeSet(mode, rotation); - if (!possibleModes.containsKey(modeSet)) - continue; - return point.translate(rotation); - } - } - return null; - } - public boolean containsManuellOutput(final ModeSet mode) { return manuellEnabledOutputs.contains(mode); } diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java index 4ee4c4bd4..5aee5d8b1 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java @@ -110,10 +110,8 @@ public static PathwayRequestResult requestPathway(final Map