Skip to content

Commit

Permalink
remove outdated commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Nov 27, 2024
1 parent 9b3c722 commit 27ea220
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions hugr-core/src/hugr/rewrite/simple_replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 27ea220

Please sign in to comment.