Skip to content

Commit 9bd9ba7

Browse files
committed
refactor: remove unused EvEvm::new constructor
1 parent f06fc84 commit 9bd9ba7

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

crates/ev-revm/src/evm.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,6 @@ pub struct EvEvm<CTX, INSP, PRECOMP = EthPrecompiles> {
3737
inspect: bool,
3838
}
3939

40-
impl<CTX, INSP, P> EvEvm<CTX, INSP, P>
41-
where
42-
CTX: ContextTr + ContextSetters,
43-
P: Default,
44-
{
45-
/// Creates a new wrapper configured with the provided redirect policy.
46-
#[allow(deprecated)]
47-
pub fn new(ctx: CTX, inspector: INSP, redirect: Option<BaseFeeRedirect>) -> Self {
48-
Self {
49-
inner: Evm {
50-
ctx,
51-
inspector,
52-
instruction: EthInstructions::new_mainnet(),
53-
precompiles: P::default(),
54-
frame_stack: FrameStack::new(),
55-
},
56-
redirect,
57-
deploy_allowlist: None,
58-
inspect: false,
59-
}
60-
}
61-
}
62-
6340
impl<CTX, INSP, P> EvEvm<CTX, INSP, P> {
6441
/// Wraps an existing EVM instance with the redirect policy.
6542
pub fn from_inner<T>(

0 commit comments

Comments
 (0)