From 3cea535fdbb1a657ef9c93c972cc20050263c3b5 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Sun, 12 Sep 2021 22:01:41 -0500 Subject: [PATCH] InMemAccountsIndex::remove is no longer called (#19805) --- runtime/src/in_mem_accounts_index.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/runtime/src/in_mem_accounts_index.rs b/runtime/src/in_mem_accounts_index.rs index b6c60f9531..7033b81af3 100644 --- a/runtime/src/in_mem_accounts_index.rs +++ b/runtime/src/in_mem_accounts_index.rs @@ -84,11 +84,6 @@ impl InMemAccountsIndex { result } - pub fn remove(&mut self, key: &K) { - Self::update_stat(&self.stats().deletes, 1); - self.map.remove(key); - } - // If the slot list for pubkey exists in the index and is empty, remove the index entry for pubkey and return true. // Return false otherwise. pub fn remove_if_slot_list_empty(&mut self, pubkey: Pubkey) -> bool {