Removes get_account_read_entry_with_lock() (#35240)

This commit is contained in:
Brooks 2024-02-21 11:25:38 -05:00 committed by GitHub
parent 4905076fb6
commit db2071a225
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 8 deletions

View File

@ -1126,14 +1126,6 @@ impl<T: IndexValue, U: DiskIndexValue + From<T> + Into<T>> AccountsIndex<T, U> {
pub fn get_account_read_entry(&self, pubkey: &Pubkey) -> Option<ReadAccountMapEntry<T>> {
let lock = self.get_bin(pubkey);
self.get_account_read_entry_with_lock(pubkey, &lock)
}
pub fn get_account_read_entry_with_lock(
&self,
pubkey: &Pubkey,
lock: &AccountMaps<'_, T, U>,
) -> Option<ReadAccountMapEntry<T>> {
lock.get(pubkey)
.map(ReadAccountMapEntry::from_account_map_entry)
}