Skip to content

Commit

Permalink
ref: removed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Oct 10, 2024
1 parent e39ecf9 commit 048272b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public class PathwayData {

public static PathwayData of(final SignalBoxGrid grid, final List<SignalBoxNode> 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()
Expand Down Expand Up @@ -291,8 +290,6 @@ private void initalize() {
option -> option.getEntry(PathEntryType.SIGNAL).ifPresent(position -> {
final Optional<Boolean> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Point, SignalBoxNode> modeGrid = grid.modeGrid;
if (!modeGrid.containsKey(p1) || !modeGrid.containsKey(p2))
return PathwayRequestResult.NOT_IN_GRID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ private static void changeIfPresent(final List<ConfigProperty> values, final Con
private static void changeSignals(final List<ConfigProperty> values, final ConfigInfo info,
final Map<SEProperty, String> oldProperties,
final Map<SEProperty, String> nextProperties) {
System.out.println("Changeing " + info.currentinfo + " with Next " + info.nextinfo);
final Map<Class<?>, Object> object = new HashMap<>();
object.put(Map.class, nextProperties != null ? nextProperties : new HashMap<>());
object.put(Integer.class, info.speed);
Expand All @@ -123,11 +122,8 @@ private static void changeSignals(final List<ConfigProperty> 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<ConfigProperty> values,
Expand Down

0 comments on commit 048272b

Please sign in to comment.