diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index c9e7ea415a..a167a046f3 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -1486,14 +1486,12 @@ impl AccountsIndex { Self::get_newest_root_in_slot_list(&roots_tracker.roots, slot_list, max_clean_root); let max_clean_root = max_clean_root.unwrap_or(roots_tracker.max_root); - let mut purged_slots: HashSet = HashSet::new(); slot_list.retain(|(slot, value)| { let should_purge = Self::can_purge_older_entries(max_clean_root, newest_root_in_slot_list, *slot) && !value.is_cached(); if should_purge { reclaims.push((*slot, value.clone())); - purged_slots.insert(*slot); } !should_purge });