diff --git a/crates/context/src/setters.rs b/crates/context/src/setters.rs deleted file mode 100644 index 278fd40d74..0000000000 --- a/crates/context/src/setters.rs +++ /dev/null @@ -1,39 +0,0 @@ -use crate::Context; -use auto_impl::auto_impl; -use context_interface::{Block, Cfg, Database, JournalTr, Transaction}; - -/// Setters for the context. -#[auto_impl(&mut, Box)] -pub trait ContextSetters { - /// Transaction type. - type Tx: Transaction; - /// Block type. - type Block: Block; - - /// Set the transaction. - fn set_tx(&mut self, tx: Self::Tx); - - /// Set the block. - fn set_block(&mut self, block: Self::Block); -} - -impl ContextSetters - for Context -where - BLOCK: Block, - TX: Transaction, - CFG: Cfg, - DB: Database, - JOURNAL: JournalTr, -{ - type Tx = TX; - type Block = BLOCK; - - fn set_tx(&mut self, tx: Self::Tx) { - self.tx = tx; - } - - fn set_block(&mut self, block: Self::Block) { - self.block = block; - } -}