Skip to content

Commit

Permalink
Fix: Remove changes to the Interner
Browse files Browse the repository at this point in the history
- Remove stale methods `contains` and `get_interned` from `Interner` in favor of the changes introduced by Qiskit#13752.
  • Loading branch information
raynelfss committed Jan 30, 2025
1 parent b18c5ab commit f1ffc16
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions crates/circuit/src/interner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,25 +391,6 @@ where
_type: PhantomData,
}
}

/// Checks whether an item is already packed in the interner
pub fn contains(&self, value: &T) -> bool
where
T: Hash + Eq,
{
self.0.contains(value)
}

/// Retrieves interner index of anitem if it exists
pub fn get_interned(&self, value: &T) -> Option<Interned<T>>
where
T: Hash + Eq,
{
self.0.get_index_of(value).map(|index| Interned {
index: index as u32,
_type: PhantomData,
})
}
}

impl<T> Interner<T>
Expand Down

0 comments on commit f1ffc16

Please sign in to comment.