File tree Expand file tree Collapse file tree 3 files changed +0
-53
lines changed
Expand file tree Collapse file tree 3 files changed +0
-53
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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- }
Original file line number Diff line number Diff 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
6256impl < E > Database for EmptyDBTyped < E > {
You can’t perform that action at this time.
0 commit comments