mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Remove unnecessary if statement in scheduler (#10446)
# Objective There is an if statement checking if a node is present in a graph moments after it explicitly being added. Unless the edge function has super weird side effects and the tests don't pass, this is unnecessary. ## Solution Removed it
This commit is contained in:
parent
0cc11791b9
commit
003765a878
1 changed files with 0 additions and 4 deletions
|
@ -859,10 +859,6 @@ impl ScheduleGraph {
|
|||
self.dependency.graph.add_node(set);
|
||||
}
|
||||
|
||||
if !self.dependency.graph.contains_node(id) {
|
||||
self.dependency.graph.add_node(id);
|
||||
}
|
||||
|
||||
for (kind, set) in dependencies
|
||||
.into_iter()
|
||||
.map(|Dependency { kind, set }| (kind, self.system_set_ids[&set]))
|
||||
|
|
Loading…
Reference in a new issue