Removes InMemAccountsIndex::get() (#35354)
This commit is contained in:
parent
140c21f8a9
commit
2e10b3b64f
|
@ -318,11 +318,6 @@ impl<T: IndexValue, U: DiskIndexValue + From<T> + Into<T>> InMemAccountsIndex<T,
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
/// lookup 'pubkey' in index (in mem or on disk)
|
|
||||||
pub fn get(&self, pubkey: &K) -> Option<AccountMapEntry<T>> {
|
|
||||||
self.get_internal_cloned(pubkey, |entry| entry)
|
|
||||||
}
|
|
||||||
|
|
||||||
/// set age of 'entry' to the future
|
/// set age of 'entry' to the future
|
||||||
/// if 'is_cached', age will be set farther
|
/// if 'is_cached', age will be set farther
|
||||||
fn set_age_to_future(&self, entry: &AccountMapEntry<T>, is_cached: bool) {
|
fn set_age_to_future(&self, entry: &AccountMapEntry<T>, is_cached: bool) {
|
||||||
|
|
Loading…
Reference in New Issue