mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final1.git
synced 2024-11-24 09:24:58 +00:00
Remove unused code
This commit is contained in:
parent
12721156f5
commit
5fd90ef2bc
@ -214,21 +214,6 @@ public final class TrainManager {
|
|||||||
collision.add(train1);
|
collision.add(train1);
|
||||||
addToSetOrAddNew(collisions, collision);
|
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user