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:
Lixou 2023-11-09 01:57:22 +01:00 committed by GitHub
parent 0cc11791b9
commit 003765a878
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]))