remove single use AccountStorage.slot_store_count (#29479)

This commit is contained in:
Jeff Washington (jwash) 2023-01-03 11:12:27 -06:00 committed by GitHub
parent 10eadb6dd9
commit 9d15ead873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -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()
}

View File

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