diff --git a/crates/interpreter/src/gas.rs b/crates/interpreter/src/gas.rs index ac0af3079d..01a3ebeafe 100644 --- a/crates/interpreter/src/gas.rs +++ b/crates/interpreter/src/gas.rs @@ -66,13 +66,6 @@ impl Gas { self.limit - self.remaining } - #[doc(hidden)] - #[inline] - #[deprecated(note = "use `spent` instead")] - pub const fn spend(&self) -> u64 { - self.spent() - } - /// Returns the amount of gas remaining. #[inline] pub const fn remaining(&self) -> u64 { diff --git a/crates/primitives/src/db.rs b/crates/primitives/src/db.rs index 3b1c6dc803..ca4ced987b 100644 --- a/crates/primitives/src/db.rs +++ b/crates/primitives/src/db.rs @@ -103,43 +103,3 @@ impl DatabaseCommit for WrapDatabaseRef { self.0.commit(changes) } } - -/// Wraps a `dyn DatabaseRef` to provide a [`Database`] implementation. -#[doc(hidden)] -#[deprecated = "use `WrapDatabaseRef` instead"] -pub struct RefDBWrapper<'a, E> { - pub db: &'a dyn DatabaseRef, -} - -#[allow(deprecated)] -impl<'a, E> RefDBWrapper<'a, E> { - #[inline] - pub fn new(db: &'a dyn DatabaseRef) -> Self { - Self { db } - } -} - -#[allow(deprecated)] -impl<'a, E> Database for RefDBWrapper<'a, E> { - type Error = E; - - #[inline] - fn basic(&mut self, address: Address) -> Result, Self::Error> { - self.db.basic_ref(address) - } - - #[inline] - fn code_by_hash(&mut self, code_hash: B256) -> Result { - self.db.code_by_hash_ref(code_hash) - } - - #[inline] - fn storage(&mut self, address: Address, index: U256) -> Result { - self.db.storage_ref(address, index) - } - - #[inline] - fn block_hash(&mut self, number: U256) -> Result { - self.db.block_hash_ref(number) - } -} diff --git a/crates/revm/src/db/emptydb.rs b/crates/revm/src/db/emptydb.rs index 9911612837..23598e8ca7 100644 --- a/crates/revm/src/db/emptydb.rs +++ b/crates/revm/src/db/emptydb.rs @@ -51,12 +51,6 @@ impl EmptyDBTyped { _phantom: PhantomData, } } - - #[doc(hidden)] - #[deprecated = "use `new` instead"] - pub fn new_keccak_block_hash() -> Self { - Self::new() - } } impl Database for EmptyDBTyped {