Remove outdated TODO comments
This commit is contained in:
parent
f9961a149d
commit
90dee55e7a
1 changed files with 0 additions and 2 deletions
|
@ -218,7 +218,6 @@ impl SwaybarArray {
|
||||||
self.objects.is_empty()
|
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> {
|
pub fn get_by_name(&self, name: &str) -> Option<&SwaybarObject> {
|
||||||
if let Some(idx) = self.objects_idx_map.get(name) {
|
if let Some(idx) = self.objects_idx_map.get(name) {
|
||||||
return Some(&self.objects[*idx]);
|
return Some(&self.objects[*idx]);
|
||||||
|
@ -227,7 +226,6 @@ impl SwaybarArray {
|
||||||
None
|
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> {
|
pub fn get_by_name_mut(&mut self, name: &str) -> Option<&mut SwaybarObject> {
|
||||||
if let Some(idx) = self.objects_idx_map.get(name) {
|
if let Some(idx) = self.objects_idx_map.get(name) {
|
||||||
return Some(&mut self.objects[*idx]);
|
return Some(&mut self.objects[*idx]);
|
||||||
|
|
Loading…
Reference in a new issue