diff --git a/crates/optimism/src/api/inspect.rs b/crates/optimism/src/api/inspect.rs index b0813b6a73..3e0546a7da 100644 --- a/crates/optimism/src/api/inspect.rs +++ b/crates/optimism/src/api/inspect.rs @@ -26,22 +26,6 @@ use revm::{ }; use std::vec::Vec; -// pub trait InspectOpEvm: ExecuteOpEvm { -// fn inspect<'a, 'b, INSP>(&'a mut self, tx: Self::Transaction, inspector: INSP) -> Self::Output -// where -// INSP: Inspector<&'a mut Self, INTR> + 'b, -// { -// self.set_tx(tx); -// self.inspect_previous(inspector) -// } - -// /// Drawback if inspector overlives the context it will take the mutable reference -// /// of it and inspector needs to be dropped to release the mutable reference. -// fn inspect_previous<'a, 'b, INSP>(&'a mut self, inspector: INSP) -> Self::Output -// where -// INSP: Inspector<&'a mut Self, INTR> + 'b; -// } - impl< BLOCK: Block, TX: OpTxTrait, @@ -135,45 +119,6 @@ where .run(ctx) } -// pub fn inspect_op< -// CTX: EthContext + InspectorCtx + JournalExtGetter, -// ERROR: EthError + From + IsTxError + FromStringError, -// FRAME: Frame< -// Context = CTX, -// Error = ERROR, -// FrameResult = FrameResult, -// FrameInit = FrameInput, -// FrameContext = FrameContext< -// OpPrecompileProvider, -// InspectorInstructionExecutor, -// >, -// > + FrameInterpreterGetter, -// HANDLER: EthHandler< -// Context = CTX, -// Error = ERROR, -// Frame = FRAME, -// Precompiles = OpPrecompileProvider, -// HaltReason = OptimismHaltReason, -// > + Default, -// >( -// ctx: &mut CTX, -// ) -> Result, ERROR> -// where -// ::Cfg: Cfg, -// { -// //todo!(); -// let mut evm = InspectorHandlerImpl::< -// CTX, -// ERROR, -// _, -// _, -// OpPrecompileProvider, -// EthInterpreter, -// >::new(HANDLER::default(), make_instruction_table()); - -// evm.run(ctx) -// } - pub fn inspect_op_commit( ctx: &mut CTX, ) -> Result< diff --git a/crates/optimism/src/context.rs b/crates/optimism/src/context.rs index ba8f264d2e..9fc5250db8 100644 --- a/crates/optimism/src/context.rs +++ b/crates/optimism/src/context.rs @@ -146,16 +146,6 @@ impl } } -// impl + JournalExt> -// InspectorContext for OpContext -// { -// type JournalExt = JOURNAL; - -// fn journal_ext(&self) -> &Self::JournalExt { -// self.0.journal_ref() -// } -// } - impl> CfgGetter for OpContext {