Skip to content

Commit

Permalink
ref: removed debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Oct 21, 2024
1 parent 04f1c64 commit c6f51b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -244,8 +242,6 @@ private void tryBlock(final List<SignalBoxPathway> 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);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c6f51b8

Please sign in to comment.