diff --git a/runtime/src/account_storage.rs b/runtime/src/account_storage.rs index c328924338..b421060f65 100644 --- a/runtime/src/account_storage.rs +++ b/runtime/src/account_storage.rs @@ -37,11 +37,6 @@ impl AccountStorage { .map(|res| res.read().unwrap().values().cloned().collect()) } - pub(crate) fn slot_store_count(&self, slot: Slot, store_id: AppendVecId) -> Option { - self.get_account_storage_entry(slot, store_id) - .map(|store| store.count()) - } - pub(crate) fn all_slots(&self) -> Vec { self.map.iter().map(|iter_item| *iter_item.key()).collect() } diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index a84773a0ea..f46116a87d 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -3219,7 +3219,8 @@ impl AccountsDb { ); let count = self .storage - .slot_store_count(*slot, account_info.store_id()) + .get_account_storage_entry(*slot, account_info.store_id()) + .map(|store| store.count()) .unwrap() - 1; debug!(