diff --git a/runtime/src/in_mem_accounts_index.rs b/runtime/src/in_mem_accounts_index.rs index 0a29613186..301dd39a49 100644 --- a/runtime/src/in_mem_accounts_index.rs +++ b/runtime/src/in_mem_accounts_index.rs @@ -487,20 +487,6 @@ impl InMemAccountsIndex { self.stats().count_in_bucket(self.bin) } - fn insert_returner( - existing: &AccountMapEntry, - pubkey: &Pubkey, - new_entry: PreAllocatedAccountMapEntry, - ) -> (AccountMapEntry, T, Pubkey) { - let (_slot, info): (Slot, T) = new_entry.into(); - ( - Arc::clone(existing), - // extract the new account_info from the unused 'new_entry' - info, - *pubkey, - ) - } - pub fn insert_new_entry_if_missing_with_lock( &self, pubkey: Pubkey,