Skip to content

Commit

Permalink
Removes get_account_read_entry_with_lock() (solana-labs#35240)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Feb 21, 2024
1 parent 4905076 commit db2071a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions accounts-db/src/accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit db2071a

Please sign in to comment.