From 33703072ebdb05fc22250f5f20d734489a16333c Mon Sep 17 00:00:00 2001 From: ashilkn Date: Thu, 7 Aug 2025 10:56:32 +0530 Subject: [PATCH] remove todo --- .../ui/viewer/gallery/component/sectioned_sliver_list.dart | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart index cb71990f3a..fd6fe14518 100644 --- a/mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart +++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart @@ -42,12 +42,6 @@ class SectionedListSliver extends StatelessWidget { sectionLayouts: sectionLayouts, delegate: SliverChildBuilderDelegate( (context, index) { - //TODO: - // This could be optimized by using a combination of - //linear search and binary search depending on the index (use linear - //if index is small) or keep track on lastIndex of section and - //go to next section after the last index. - // Check if the optimization is required. if (index >= childCount) return null; final sectionLayout = sectionLayouts .firstWhereOrNull((section) => section.hasChild(index));