Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
maniwani committed Feb 1, 2023
1 parent a6d0552 commit 92450cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/bevy_ecs/src/schedule_v3/graph_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ where
}
}

// TODO: make iterator, setup stack to return here
if successors.peekable().peek().is_none() {
if maybe_in_more_cycles.contains(node) {
unblock_stack.push(*node);
Expand All @@ -343,11 +342,8 @@ where
}
}

// remove node from path
debug_assert_eq!(path.last(), Some(node));
// remove node from path and DFS stack
path.pop();

// remove node from DFS stack
stack.pop();
}
}
Expand Down

0 comments on commit 92450cf

Please sign in to comment.