From db2071a2257f7f0f3421cef36bbf0a8d861ff84b Mon Sep 17 00:00:00 2001 From: Brooks Date: Wed, 21 Feb 2024 11:25:38 -0500 Subject: [PATCH] Removes get_account_read_entry_with_lock() (#35240) --- accounts-db/src/accounts_index.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/accounts-db/src/accounts_index.rs b/accounts-db/src/accounts_index.rs index 17e0d5277..51a04e3a4 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) }