Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobord committed Mar 19, 2024
1 parent e3a3c08 commit 3c6a558
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions quantinuum-hugr/src/hugr/rewrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ pub trait Rewrite {
///
/// Two `impl Rewrite`s can be composed if their invalidation sets are
/// disjoint.
/// Using this way instead is to avoid associated type
/// but requires 1.75 and can break impl Rewrite in other repos
fn invalidation_set(&self) -> impl Iterator<Item = Node>;
}

Expand Down
8 changes: 0 additions & 8 deletions quantinuum-hugr/src/hugr/rewrite/simple_replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ impl SimpleReplacement {
}
}

/*
type SubgraphNodesIter<'a> = Copied<slice::Iter<'a, Node>>;
type NuOutNodesIter<'a> = iter::Map<
hash_map::Keys<'a, (Node, IncomingPort), IncomingPort>,
fn(&'a (Node, IncomingPort)) -> Node,
>;
*/

impl Rewrite for SimpleReplacement {
type Error = SimpleReplacementError;
type ApplyResult = ();
Expand Down

0 comments on commit 3c6a558

Please sign in to comment.