InMemAccountsIndex::remove is no longer called (#19805)

This commit is contained in:
Jeff Washington (jwash) 2021-09-12 22:01:41 -05:00 committed by GitHub
parent b992c02708
commit 3cea535fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -84,11 +84,6 @@ impl<T: IsCached> InMemAccountsIndex<T> {
result
}
pub fn remove(&mut self, key: &K) {
Self::update_stat(&self.stats().deletes, 1);
self.map.remove(key);
}
// If the slot list for pubkey exists in the index and is empty, remove the index entry for pubkey and return true.
// Return false otherwise.
pub fn remove_if_slot_list_empty(&mut self, pubkey: Pubkey) -> bool {