From c6f51b8723433088df32a098911ed9b9512a776b Mon Sep 17 00:00:00 2001 From: Cedric Date: Mon, 21 Oct 2024 22:41:33 +0200 Subject: [PATCH] ref: removed debug output --- .../com/troblecodings/signals/signalbox/SignalBoxGrid.java | 4 ---- .../com/troblecodings/signals/signalbox/SignalBoxPathway.java | 1 - 2 files changed, 5 deletions(-) diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java index e9ef664f3..bc4db847b 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java @@ -127,12 +127,10 @@ private boolean checkManuellResetOfProtectionWay(final Point p1) { } protected void resetPathway(final SignalBoxPathway pathway) { - System.out.println("Resetting " + pathway); pathway.resetPathway(); updatePrevious(pathway); this.startsToPath.remove(pathway.getFirstPoint()); this.endsToPath.remove(pathway.getLastPoint()); - System.out.println("Removed " + pathway); } protected void updateToNet(final SignalBoxPathway pathway) { @@ -244,8 +242,6 @@ private void tryBlock(final List pathways, final BlockPos pos) pathways.forEach(pathway -> { if (pathway.tryBlock(pos)) { updatePrevious(pathway); - System.out.println( - "Updateing Previous PW from " + pathway + " due to blocking request!"); updateToNet(pathway); } }); diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java index a50c92867..2a6180494 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java @@ -265,7 +265,6 @@ protected void updateSignalStates() { if (startSignal != null) { if (isBlocked) return; - System.out.println("Setting " + startSignal + " on " + this); final SignalState previous = startSignal.state; startSignal.state = SignalState.GREEN; if (!startSignal.state.equals(previous))