commit 10c4ac80a1ad445945a20953b10422e0576d8e0c
parent a73596df48d7473c126e7ed59adf00282ef2e9fb
Author: kernelkind <kernelkind@gmail.com>
Date: Tue, 1 Jul 2025 21:54:37 -0400
Revert "tmp: temporary AccountCache"
This reverts commit 726da7dabf5bf089a463309c41be3f6e11d0c43d.
Diffstat:
1 file changed, 0 insertions(+), 18 deletions(-)
diff --git a/crates/notedeck/src/account/cache.rs b/crates/notedeck/src/account/cache.rs
@@ -90,14 +90,6 @@ impl AccountCache {
.get_mut(&self.selected)
.expect("guarenteed that selected exists in accounts")
}
-
- pub fn contains(&self, pk: &[u8; 32]) -> bool {
- self.accounts.contains_key(pk)
- }
-
- pub(super) fn iter_mut(&mut self) -> AccountCacheIterMut<'_> {
- AccountCacheIterMut(self.accounts.iter_mut())
- }
}
impl<'a> IntoIterator for &'a AccountCache {
@@ -108,13 +100,3 @@ impl<'a> IntoIterator for &'a AccountCache {
self.accounts.iter()
}
}
-
-pub(super) struct AccountCacheIterMut<'a>(hashbrown::hash_map::IterMut<'a, Pubkey, UserAccount>);
-
-impl<'a> Iterator for AccountCacheIterMut<'a> {
- type Item = (&'a Pubkey, &'a mut UserAccount);
-
- fn next(&mut self) -> Option<Self::Item> {
- self.0.next()
- }
-}