Skip to content

Commit

Permalink
Merge pull request #115 from a-kenji/rm/unused-adjustments
Browse files Browse the repository at this point in the history
Remove now obsolete outputs check
  • Loading branch information
a-kenji authored Aug 1, 2024
2 parents 614a4ab + 9f8e77d commit 6f71db7
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 6f71db7

Please sign in to comment.