Skip to content

Commit 22e15d3

Browse files
authored
chore: remove old deprecated items (#1489)
1 parent 3ae8ff2 commit 22e15d3

File tree

3 files changed

+0
-53
lines changed

3 files changed

+0
-53
lines changed

crates/interpreter/src/gas.rs

-7
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ impl Gas {
6666
self.limit - self.remaining
6767
}
6868

69-
#[doc(hidden)]
70-
#[inline]
71-
#[deprecated(note = "use `spent` instead")]
72-
pub const fn spend(&self) -> u64 {
73-
self.spent()
74-
}
75-
7669
/// Returns the amount of gas remaining.
7770
#[inline]
7871
pub const fn remaining(&self) -> u64 {

crates/primitives/src/db.rs

-40
Original file line numberDiff line numberDiff line change
@@ -103,43 +103,3 @@ impl<T: DatabaseRef + DatabaseCommit> DatabaseCommit for WrapDatabaseRef<T> {
103103
self.0.commit(changes)
104104
}
105105
}
106-
107-
/// Wraps a `dyn DatabaseRef` to provide a [`Database`] implementation.
108-
#[doc(hidden)]
109-
#[deprecated = "use `WrapDatabaseRef` instead"]
110-
pub struct RefDBWrapper<'a, E> {
111-
pub db: &'a dyn DatabaseRef<Error = E>,
112-
}
113-
114-
#[allow(deprecated)]
115-
impl<'a, E> RefDBWrapper<'a, E> {
116-
#[inline]
117-
pub fn new(db: &'a dyn DatabaseRef<Error = E>) -> Self {
118-
Self { db }
119-
}
120-
}
121-
122-
#[allow(deprecated)]
123-
impl<'a, E> Database for RefDBWrapper<'a, E> {
124-
type Error = E;
125-
126-
#[inline]
127-
fn basic(&mut self, address: Address) -> Result<Option<AccountInfo>, Self::Error> {
128-
self.db.basic_ref(address)
129-
}
130-
131-
#[inline]
132-
fn code_by_hash(&mut self, code_hash: B256) -> Result<Bytecode, Self::Error> {
133-
self.db.code_by_hash_ref(code_hash)
134-
}
135-
136-
#[inline]
137-
fn storage(&mut self, address: Address, index: U256) -> Result<U256, Self::Error> {
138-
self.db.storage_ref(address, index)
139-
}
140-
141-
#[inline]
142-
fn block_hash(&mut self, number: U256) -> Result<B256, Self::Error> {
143-
self.db.block_hash_ref(number)
144-
}
145-
}

crates/revm/src/db/emptydb.rs

-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ impl<E> EmptyDBTyped<E> {
5151
_phantom: PhantomData,
5252
}
5353
}
54-
55-
#[doc(hidden)]
56-
#[deprecated = "use `new` instead"]
57-
pub fn new_keccak_block_hash() -> Self {
58-
Self::new()
59-
}
6054
}
6155

6256
impl<E> Database for EmptyDBTyped<E> {

0 commit comments

Comments
 (0)