diff --git a/src/edu/kit/informatik/model/TrainManager.java b/src/edu/kit/informatik/model/TrainManager.java index 79f1304..800770c 100644 --- a/src/edu/kit/informatik/model/TrainManager.java +++ b/src/edu/kit/informatik/model/TrainManager.java @@ -214,21 +214,6 @@ public final class TrainManager { collision.add(train1); addToSetOrAddNew(collisions, collision); } - /* - if (!collision.isEmpty()) { - // check for existing collision - Set otherCollision = collisions.stream() - .filter(x -> x.stream().anyMatch(collision::contains)) - .findFirst().orElse(null); - if (otherCollision != null) { // add to that collision - otherCollision.add(train1); - otherCollision.addAll(collision); - } else { // create a new collision - collision.add(train1); - collisions.add(collision); - } - } - */ } }