Skip to content

Commit

Permalink
Remove now obsolete outputs check
Browse files Browse the repository at this point in the history
Remove the outputs check inside of the walker itself,
since the check and adjustments are done outside.
  • Loading branch information
a-kenji committed Aug 1, 2024
1 parent 711aa51 commit 9f8e77d
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,30 +311,6 @@ impl<'a> Walker {
// We are not interested in the description
break;
}
// We now want to check, if the outputs are correct
// and adjust them if necessary. After adding an input
// we could have broken the flake in that case we need
// to also add the input to the outputs.
// if child.to_string() == "outputs" {
// println!("child next_sibling: {}", child.next_sibling().unwrap());
// println!(
// "child next_sibling kind: {:?}",
// child.next_sibling().unwrap().kind()
// );
// if let Some(child) = child.next_sibling() {
// for output in child.children() {
// // TODO: check in the children:
// // - if there is a ... already in the outputs,
// // then we don't need to add an output
// // - if our added output is not there yet,
// // then we need to add it
// for child in output.children() {
// println!("child: {}", child);
// println!("child kind: {:?}", child.kind());
// }
// }
// }
// }
if child.to_string() == "inputs" {
if let Some(replacement) =
self.walk_inputs(child.next_sibling().unwrap(), &ctx, change)
Expand Down

0 comments on commit 9f8e77d

Please sign in to comment.