commit f318bbb19a10010119da5962610ee05affd12986
parent 2fb2940d56c954611469de1730dcdb6eaa1ff6f1
Author: kernelkind <kernelkind@gmail.com>
Date: Wed, 25 Jun 2025 17:46:26 -0400
remove unnecessary method
Signed-off-by: kernelkind <kernelkind@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/crates/notedeck/src/account/accounts.rs b/crates/notedeck/src/account/accounts.rs
@@ -69,10 +69,6 @@ impl Accounts {
self.accounts.get(ind)
}
- pub fn get_account_mut(&mut self, ind: usize) -> Option<&mut UserAccount> {
- self.accounts.get_mut(ind)
- }
-
pub fn find_account(&self, pk: &[u8; 32]) -> Option<&UserAccount> {
self.accounts
.iter()
@@ -254,7 +250,7 @@ impl Accounts {
pub fn get_selected_account_mut(&mut self) -> Option<&mut UserAccount> {
self.currently_selected_account
- .map(|i| self.get_account_mut(i))?
+ .map(|i| self.accounts.get_mut(i))?
}
pub fn get_account_mut_optimized(&mut self, pk: &[u8; 32]) -> Option<&mut UserAccount> {