Skip to content

Commit

Permalink
refactor(mempool): mempool content remove unused code (#1819)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadNassar1 authored Nov 5, 2024
1 parent b813000 commit cf4553d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions crates/mempool/src/mempool_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use crate::transaction_queue::transaction_queue_test_utils::{
TransactionQueueContent,
TransactionQueueContentBuilder,
};
use crate::transaction_queue::TransactionQueue;
use crate::{add_tx_input, tx};

// Utils.
Expand Down Expand Up @@ -129,16 +128,6 @@ impl FromIterator<Transaction> for TransactionPool {
}
}

impl FromIterator<TransactionReference> for TransactionQueue {
fn from_iter<T: IntoIterator<Item = TransactionReference>>(txs: T) -> Self {
let mut queue = Self::default();
for tx in txs {
queue.insert(tx);
}
queue
}
}

#[track_caller]
fn add_tx_and_verify_replacement(
mut mempool: Mempool,
Expand Down

0 comments on commit cf4553d

Please sign in to comment.