AcctIdx: remove unused function (#21546)

This commit is contained in:
Jeff Washington (jwash) 2021-12-01 17:14:49 -06:00 committed by GitHub
parent 1fae3d24de
commit c8a52337c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 14 deletions

View File

@ -487,20 +487,6 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
self.stats().count_in_bucket(self.bin)
}
fn insert_returner(
existing: &AccountMapEntry<T>,
pubkey: &Pubkey,
new_entry: PreAllocatedAccountMapEntry<T>,
) -> (AccountMapEntry<T>, 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,