diff --git a/lib/ui/gallery.dart b/lib/ui/gallery.dart index d2d351b14..dc39a4819 100644 --- a/lib/ui/gallery.dart +++ b/lib/ui/gallery.dart @@ -59,7 +59,6 @@ class _GalleryState extends State { // TODO: Investigate reason for multiple rebuilds on selection change _photos = widget.photos; _selectedPhotos = widget.selectedPhotos; - _deduplicatePhotos(); _collatePhotos(); final list = ListView.builder( itemCount: _collatedPhotos.length, @@ -184,16 +183,6 @@ class _GalleryState extends State { ); } - void _deduplicatePhotos() { - for (int index = 1; index < _photos.length; index++) { - final current = _photos[index], previous = _photos[index - 1]; - if (current.localId != null && current.localId == previous.localId) { - _photos.removeAt(index); - index--; - } - } - } - void _collatePhotos() { final dailyPhotos = List(); final collatedPhotos = List>();