From 27ea2206a21653fb4a349bec93a252e55372b919 Mon Sep 17 00:00:00 2001 From: Seyon Sivarajah Date: Wed, 27 Nov 2024 17:04:29 +0000 Subject: [PATCH] remove outdated commits --- hugr-core/src/hugr/rewrite/simple_replace.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/hugr-core/src/hugr/rewrite/simple_replace.rs b/hugr-core/src/hugr/rewrite/simple_replace.rs index c921db2a0..c07fefe93 100644 --- a/hugr-core/src/hugr/rewrite/simple_replace.rs +++ b/hugr-core/src/hugr/rewrite/simple_replace.rs @@ -93,9 +93,6 @@ impl Rewrite for SimpleReplacement { // Now we proceed to connect the edges between the newly inserted // replacement and the rest of the graph. // - // We delay creating these connections to avoid them getting mixed with - // the pre-existing ones in the following logic. - // // Existing connections to the removed subgraph will be automatically // removed when the nodes are removed. @@ -190,11 +187,7 @@ impl Rewrite for SimpleReplacement { let (rem_inp_pred_node, rem_inp_pred_port) = h .single_linked_output(*rem_inp_node, *rem_inp_port) .unwrap(); - // Delay connecting the nodes until after processing all nu_out - // entries. - // - // Otherwise, we might disconnect other wires in `rem_inp_node` - // that are needed for the following iterations. + h.connect( rem_inp_pred_node, rem_inp_pred_port,