From 23728107a3b8c0c36813e15c79c8d18b05dc3c7c Mon Sep 17 00:00:00 2001 From: ashilkn Date: Fri, 4 Jul 2025 12:11:17 +0530 Subject: [PATCH] Remove unused parameter --- mobile/lib/models/gallery/gallery_sections.dart | 1 - mobile/lib/ui/viewer/gallery/component/group/type.dart | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) {