Cleanup unused archive_mode param (#1886)

This commit is contained in:
Antioch Peverell 2018-10-30 18:36:28 +00:00 committed by Ignotus Peverell
parent c8afc800ff
commit d3b491674a
2 changed files with 0 additions and 4 deletions

View file

@ -42,7 +42,6 @@ use util::OneTime;
/// implementations. /// implementations.
pub struct NetToChainAdapter { pub struct NetToChainAdapter {
sync_state: Arc<SyncState>, sync_state: Arc<SyncState>,
archive_mode: bool,
chain: Weak<chain::Chain>, chain: Weak<chain::Chain>,
tx_pool: Arc<RwLock<pool::TransactionPool>>, tx_pool: Arc<RwLock<pool::TransactionPool>>,
verifier_cache: Arc<RwLock<VerifierCache>>, verifier_cache: Arc<RwLock<VerifierCache>>,
@ -358,7 +357,6 @@ impl NetToChainAdapter {
/// Construct a new NetToChainAdapter instance /// Construct a new NetToChainAdapter instance
pub fn new( pub fn new(
sync_state: Arc<SyncState>, sync_state: Arc<SyncState>,
archive_mode: bool,
chain: Arc<chain::Chain>, chain: Arc<chain::Chain>,
tx_pool: Arc<RwLock<pool::TransactionPool>>, tx_pool: Arc<RwLock<pool::TransactionPool>>,
verifier_cache: Arc<RwLock<VerifierCache>>, verifier_cache: Arc<RwLock<VerifierCache>>,
@ -366,7 +364,6 @@ impl NetToChainAdapter {
) -> NetToChainAdapter { ) -> NetToChainAdapter {
NetToChainAdapter { NetToChainAdapter {
sync_state, sync_state,
archive_mode,
chain: Arc::downgrade(&chain), chain: Arc::downgrade(&chain),
tx_pool, tx_pool,
verifier_cache, verifier_cache,

View file

@ -159,7 +159,6 @@ impl Server {
let net_adapter = Arc::new(NetToChainAdapter::new( let net_adapter = Arc::new(NetToChainAdapter::new(
sync_state.clone(), sync_state.clone(),
archive_mode,
shared_chain.clone(), shared_chain.clone(),
tx_pool.clone(), tx_pool.clone(),
verifier_cache.clone(), verifier_cache.clone(),