Skip to content

Commit

Permalink
Removes get_for_tests() (solana-labs#35311)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored and jeffwashington committed Feb 27, 2024
1 parent ad4a942 commit 3d0b639
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions accounts-db/src/accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2170,18 +2170,6 @@ pub mod tests {
}
}

impl<T: IndexValue, U: DiskIndexValue + From<T> + Into<T>> AccountsIndex<T, U> {
/// provides the ability to refactor this function on the api without bloody changes
pub fn get_for_tests(
&self,
pubkey: &Pubkey,
ancestors: Option<&Ancestors>,
max_root: Option<Slot>,
) -> AccountIndexGetResult<T> {
self.get(pubkey, ancestors, max_root)
}
}

const COLLECT_ALL_UNSORTED_FALSE: bool = false;

#[test]
Expand Down

0 comments on commit 3d0b639

Please sign in to comment.