drop dead code

This commit is contained in:
Erik Zscheile 2019-12-23 00:39:46 +01:00
parent d5f6bc043d
commit fd706bfa57

View file

@ -34,31 +34,12 @@ pub struct TransactionColl {
elems: Vec<TransactionLine>,
}
impl std::ops::Deref for TransactionColl {
type Target = [TransactionLine];
#[inline]
fn deref(&self) -> &[TransactionLine] {
&self.elems[..]
}
}
impl TransactionColl {
#[inline]
pub fn new() -> Self {
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) {
if let Some(x) = self.pothc.get(&tl.p_other) {
tl.p_other = x.clone();