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 authored and GitHub committed 2022-03-10 19:35:11 +01:00
1 parent c939d0a7a0
commit 47f96b6584
5 files changed
+2 -13

No files matched your search

@@ -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>