Skip to content

Commit

Permalink
Remove unused get_append_vec_id function (solana-labs#34949)
Browse files Browse the repository at this point in the history
remove unused get_append_vec_id fn

Co-authored-by: HaoranYi <[email protected]>
  • Loading branch information
HaoranYi and HaoranYi authored Jan 26, 2024
1 parent 8a0c91d commit e38848e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9786,12 +9786,6 @@ pub mod tests {
}

impl AccountsDb {
pub fn get_append_vec_id(&self, pubkey: &Pubkey, slot: Slot) -> Option<AppendVecId> {
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,
Expand Down

0 comments on commit e38848e

Please sign in to comment.