diff --git a/accounts-db/src/accounts_index.rs b/accounts-db/src/accounts_index.rs index 17e0d527746960..51a04e3a4eb4b6 100644 --- a/accounts-db/src/accounts_index.rs +++ b/accounts-db/src/accounts_index.rs @@ -1126,14 +1126,6 @@ impl + Into> AccountsIndex { pub fn get_account_read_entry(&self, pubkey: &Pubkey) -> Option> { 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> { lock.get(pubkey) .map(ReadAccountMapEntry::from_account_map_entry) }