Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit b846821

Browse files
sorpaas5chdn
authored andcommitted
Remove State::replace_backend (#8569)
1 parent f20f9f3 commit b846821

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

ethcore/src/state/mod.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -402,19 +402,6 @@ impl<B: Backend> State<B> {
402402
self.factories.vm.clone()
403403
}
404404

405-
/// Swap the current backend for another.
406-
// TODO: [rob] find a less hacky way to avoid duplication of `Client::state_at`.
407-
pub fn replace_backend<T: Backend>(self, backend: T) -> State<T> {
408-
State {
409-
db: backend,
410-
root: self.root,
411-
cache: self.cache,
412-
checkpoints: self.checkpoints,
413-
account_start_nonce: self.account_start_nonce,
414-
factories: self.factories,
415-
}
416-
}
417-
418405
/// Create a recoverable checkpoint of this state.
419406
pub fn checkpoint(&mut self) {
420407
self.checkpoints.get_mut().push(HashMap::new());

0 commit comments

Comments
 (0)