diff --git a/crates/trie/common/src/hashed_state.rs b/crates/trie/common/src/hashed_state.rs index 315bda49a4..8bed608554 100644 --- a/crates/trie/common/src/hashed_state.rs +++ b/crates/trie/common/src/hashed_state.rs @@ -46,33 +46,6 @@ impl HashedPostState { /// Hashes all changed accounts and storage entries that are currently stored in the bundle /// state. #[inline] - #[cfg(feature = "rayon")] - pub fn from_bundle_state<'a, KH: KeyHasher>( - state: impl IntoParallelIterator, - ) -> Self { - state - .into_par_iter() - .map(|(address, account)| { - let hashed_address = KH::hash_key(address); - let hashed_account = account.info.as_ref().map(Into::into); - let hashed_storage = HashedStorage::from_plain_storage( - account.status, - account.storage.iter().map(|(slot, value)| (slot, &value.present_value)), - ); - - ( - hashed_address, - hashed_account, - (!hashed_storage.is_empty()).then_some(hashed_storage), - ) - }) - .collect() - } - - /// Initialize [`HashedPostState`] from bundle state. - /// Hashes all changed accounts and storage entries that are currently stored in the bundle - /// state. - #[cfg(not(feature = "rayon"))] pub fn from_bundle_state<'a, KH: KeyHasher>( state: impl IntoIterator, ) -> Self {