From 90dee55e7accb32724cc9207a49a396e3ae15065 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sun, 10 Jul 2022 18:02:00 +0900 Subject: [PATCH] Remove outdated TODO comments --- src/swaybar_object.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/swaybar_object.rs b/src/swaybar_object.rs index f07ef6e..2fc9d48 100644 --- a/src/swaybar_object.rs +++ b/src/swaybar_object.rs @@ -218,7 +218,6 @@ impl SwaybarArray { self.objects.is_empty() } - // TODO this is linear, and it probably is possible to improve this pub fn get_by_name(&self, name: &str) -> Option<&SwaybarObject> { if let Some(idx) = self.objects_idx_map.get(name) { return Some(&self.objects[*idx]); @@ -227,7 +226,6 @@ impl SwaybarArray { None } - // TODO this is linear, and it probably is possible to improve this pub fn get_by_name_mut(&mut self, name: &str) -> Option<&mut SwaybarObject> { if let Some(idx) = self.objects_idx_map.get(name) { return Some(&mut self.objects[*idx]);