drop dead code
This commit is contained in:
parent
d5f6bc043d
commit
fd706bfa57
|
@ -34,31 +34,12 @@ pub struct TransactionColl {
|
||||||
elems: Vec<TransactionLine>,
|
elems: Vec<TransactionLine>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl std::ops::Deref for TransactionColl {
|
|
||||||
type Target = [TransactionLine];
|
|
||||||
|
|
||||||
#[inline]
|
|
||||||
fn deref(&self) -> &[TransactionLine] {
|
|
||||||
&self.elems[..]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl TransactionColl {
|
impl TransactionColl {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Default::default()
|
Default::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
pub fn is_empty(&self) -> bool {
|
|
||||||
self.elems.is_empty()
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline]
|
|
||||||
pub fn len(&self) -> usize {
|
|
||||||
self.elems.len()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn push(&mut self, mut tl: TransactionLine) {
|
pub fn push(&mut self, mut tl: TransactionLine) {
|
||||||
if let Some(x) = self.pothc.get(&tl.p_other) {
|
if let Some(x) = self.pothc.get(&tl.p_other) {
|
||||||
tl.p_other = x.clone();
|
tl.p_other = x.clone();
|
||||||
|
|
Loading…
Reference in a new issue