Remove unused parent_hash in OverlayedChanges::into_storage_changes (#11011)

Ref https://github.com/paritytech/substrate/pull/10922#issuecomment-1064258443

CC @cheme
This commit is contained in:
Liu-Cheng Xu
2022-03-11 02:35:11 +08:00
committed by GitHub
parent c939d0a7a0
commit 47f96b6584
5 changed files with 2 additions and 13 deletions
@@ -500,21 +500,19 @@ impl OverlayedChanges {
pub fn into_storage_changes<B: Backend<H>, H: Hasher>(
mut self,
backend: &B,
parent_hash: H::Out,
mut cache: StorageTransactionCache<B::Transaction, H>,
state_version: StateVersion,
) -> Result<StorageChanges<B::Transaction, H>, DefaultError>
where
H::Out: Ord + Encode + 'static,
{
self.drain_storage_changes(backend, parent_hash, &mut cache, state_version)
self.drain_storage_changes(backend, &mut cache, state_version)
}
/// Drain all changes into a [`StorageChanges`] instance. Leave empty overlay in place.
pub fn drain_storage_changes<B: Backend<H>, H: Hasher>(
&mut self,
backend: &B,
_parent_hash: H::Out,
mut cache: &mut StorageTransactionCache<B::Transaction, H>,
state_version: StateVersion,
) -> Result<StorageChanges<B::Transaction, H>, DefaultError>