remove single use AccountStorage.slot_store_count (#29479)
This commit is contained in:
parent
10eadb6dd9
commit
9d15ead873
|
@ -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<usize> {
|
||||
self.get_account_storage_entry(slot, store_id)
|
||||
.map(|store| store.count())
|
||||
}
|
||||
|
||||
pub(crate) fn all_slots(&self) -> Vec<Slot> {
|
||||
self.map.iter().map(|iter_item| *iter_item.key()).collect()
|
||||
}
|
||||
|
|
|
@ -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!(
|
||||
|
|
Loading…
Reference in New Issue