Remove unused code

This commit is contained in:
Arne Keller 2020-03-03 22:59:49 +01:00
parent 12721156f5
commit 5fd90ef2bc

View File

@ -214,21 +214,6 @@ public final class TrainManager {
collision.add(train1);
addToSetOrAddNew(collisions, collision);
}
/*
if (!collision.isEmpty()) {
// check for existing collision
Set<Train> 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);
}
}
*/
}
}