From c8a52337c8a5188c98e332f43150e2300680082c Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Wed, 1 Dec 2021 17:14:49 -0600 Subject: [PATCH] AcctIdx: remove unused function (#21546) --- runtime/src/in_mem_accounts_index.rs | 14 -------------- 1 file changed, 14 deletions(-) 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,