From e38848e519e9cf0816a53b64046b58b2a8b2e119 Mon Sep 17 00:00:00 2001 From: HaoranYi Date: Fri, 26 Jan 2024 15:41:09 -0600 Subject: [PATCH] Remove unused get_append_vec_id function (#34949) remove unused get_append_vec_id fn Co-authored-by: HaoranYi --- accounts-db/src/accounts_db.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index b1103cb17..17617dc87 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -9786,12 +9786,6 @@ pub mod tests { } impl AccountsDb { - pub fn get_append_vec_id(&self, pubkey: &Pubkey, slot: Slot) -> Option { - let ancestors = vec![(slot, 1)].into_iter().collect(); - let result = self.accounts_index.get(pubkey, Some(&ancestors), None); - result.map(|(list, index)| list.slot_list()[index].1.store_id()) - } - fn scan_snapshot_stores( &self, storage: &SortedStorages,