Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove unused parameter

ashilkn23728107a3b8
diff --git a/mobile/lib/models/gallery/gallery_sections.dart b/mobile/lib/models/gallery/gallery_sections.dart
index 3c311dcf19..387d82c2d8 100644
--- a/mobile/lib/models/gallery/gallery_sections.dart
+++ b/mobile/lib/models/gallery/gallery_sections.dart
@@ -208,7 +208,6 @@ class GalleryGroups {
title: groupType.getTitle(
context,
dailyFiles.first,
- lastFile: dailyFiles.last,
),
groupType: groupType,
);
diff --git a/mobile/lib/ui/viewer/gallery/component/group/type.dart b/mobile/lib/ui/viewer/gallery/component/group/type.dart
index 079ddb1e2e..40f451b583 100644
--- a/mobile/lib/ui/viewer/gallery/component/group/type.dart
+++ b/mobile/lib/ui/viewer/gallery/component/group/type.dart
@@ -46,7 +46,10 @@ extension GroupTypeExtension on GroupType {
return true;
}
- String getTitle(BuildContext context, EnteFile file, {EnteFile? lastFile}) {
+ String getTitle(
+ BuildContext context,
+ EnteFile file,
+ ) {
if (this == GroupType.day) {
return _getDayTitle(context, file.creationTime!);
} else if (this == GroupType.week) {