From 048272bc4f34612db1dba44f9dd93e2933a2bdc9 Mon Sep 17 00:00:00 2001 From: Cedric Date: Thu, 10 Oct 2024 22:53:06 +0200 Subject: [PATCH] ref: removed debug --- .../com/troblecodings/signals/signalbox/PathwayData.java | 3 --- .../com/troblecodings/signals/signalbox/SignalBoxGrid.java | 1 - .../troblecodings/signals/signalbox/SignalBoxPathway.java | 1 - .../com/troblecodings/signals/signalbox/SignalBoxUtil.java | 1 - .../signals/signalbox/config/SignalConfig.java | 6 +----- 5 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main/java/com/troblecodings/signals/signalbox/PathwayData.java b/src/main/java/com/troblecodings/signals/signalbox/PathwayData.java index d37fe9cbb..3224e0600 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/PathwayData.java +++ b/src/main/java/com/troblecodings/signals/signalbox/PathwayData.java @@ -71,7 +71,6 @@ public class PathwayData { public static PathwayData of(final SignalBoxGrid grid, final List pNodes, final PathType type) { - System.out.println("PathwayNodes: " + pNodes); final PathwayData data = SignalBoxFactory.getFactory().getPathwayData(); data.prepareData(grid, pNodes, type); if (!data.checkForShuntingPath() || !data.checkForPreviousProtectionWay() @@ -291,8 +290,6 @@ private void initalize() { option -> option.getEntry(PathEntryType.SIGNAL).ifPresent(position -> { final Optional repeaterOption = option .getEntry(PathEntryType.SIGNAL_REPEATER); - System.out.println("Found OtherSignal! Pos: " + position + ", Point: " - + node.getPoint() + ", Mode: " + modeSet); final OtherSignalIdentifier ident = new OtherSignalIdentifier( node.getPoint(), modeSet, position, repeaterOption.isPresent() && repeaterOption.get(), mode); diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java index ef1fdf9f1..aae118f1c 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java @@ -410,7 +410,6 @@ public void read(final NBTWrapper tag) { if (!states.isEmpty()) enabledSubsidiaryTypes.put(node.getPoint(), states); }); - System.out.println(modeGrid.keySet()); counter = tag.getInteger(SUBSIDIARY_COUNTER); } diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java index 72b5f4d0c..0a9c5d4d1 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java @@ -588,7 +588,6 @@ private void sendTrainNumberUpdates() { final WriteBuffer buffer = new WriteBuffer(); buffer.putEnumValue(SignalBoxNetwork.SEND_TRAIN_NUMBER); buffer.putInt(trainNumberDisplays.size()); - System.out.println(trainNumberDisplays); trainNumberDisplays.forEach(ident -> { final SignalBoxNode node = grid.getNode(ident.point); node.getPoint().writeNetwork(buffer); diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java index d7071af43..5e3df6967 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java @@ -68,7 +68,6 @@ public Point getPoint() { public static PathwayRequestResult requestPathway(final SignalBoxGrid grid, final Point p1, final Point p2, final PathType pathType) { - System.out.println("Requesting PW from " + p1 + " to " + p2 + "!"); final Map modeGrid = grid.modeGrid; if (!modeGrid.containsKey(p1) || !modeGrid.containsKey(p2)) return PathwayRequestResult.NOT_IN_GRID; diff --git a/src/main/java/com/troblecodings/signals/signalbox/config/SignalConfig.java b/src/main/java/com/troblecodings/signals/signalbox/config/SignalConfig.java index 675caa956..362bf8e0b 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/config/SignalConfig.java +++ b/src/main/java/com/troblecodings/signals/signalbox/config/SignalConfig.java @@ -109,7 +109,6 @@ private static void changeIfPresent(final List values, final Con private static void changeSignals(final List values, final ConfigInfo info, final Map oldProperties, final Map nextProperties) { - System.out.println("Changeing " + info.currentinfo + " with Next " + info.nextinfo); final Map, Object> object = new HashMap<>(); object.put(Map.class, nextProperties != null ? nextProperties : new HashMap<>()); object.put(Integer.class, info.speed); @@ -123,11 +122,8 @@ private static void changeSignals(final List values, final Confi .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue))); } }); - if (!propertiesToSet.isEmpty()) { + if (!propertiesToSet.isEmpty()) SignalStateHandler.setStates(info.currentinfo, propertiesToSet); - } else { - System.out.println(info.currentinfo + " has no Properties to Change!"); - } } private static void loadWithoutPredicate(final List values,