π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove redundant memories comments
ashilkn200d0d303a7b
diff --git a/mobile/apps/photos/lib/services/memories/photo_selector.dart b/mobile/apps/photos/lib/services/memories/photo_selector.dartindex 64827db64e..bf08ac5df0 100644--- a/mobile/apps/photos/lib/services/memories/photo_selector.dart+++ b/mobile/apps/photos/lib/services/memories/photo_selector.dart@@ -50,14 +50,6 @@ class PhotoSelector {static const clipSimilarImageThreshold = 0.80;static const minimumMemoryTimeGap = Duration(minutes: 10);- // ------------------------------------------------------------------------ // Unified selection entry point- // ------------------------------------------------------------------------- /// Selects up to [config.targetSize] memories from [memories], applying the- /// distribution, filtering, picking and sorting strategies in [config].- ///- /// Skips scoring when [memories] is already small enough.static Future<List<Memory>> select(List<Memory> memories,SelectionConfig config,@@ -473,8 +465,7 @@ class PhotoSelector {return memories;}- /// Adds videos from [candidates] to [selected] while retaining a photo.- /// Two videos are placed together so video-to-video playback is exercised.+ // Adjacent videos intentionally exercise video-to-video playback.static List<Memory> includeVideos(List<Memory> selected,List<Memory> candidates,@@ -517,11 +508,7 @@ class PhotoSelector {return result;}- // ------------------------------------------------------------------------ // Legacy entry points (delegate to select())- // ------------------------------------------------------------------------- /// Creates a curated selection of memories for the People memories.+ // Legacy entry points retained for existing callers.static Future<List<Memory>> bestSelectionPeople(List<Memory> memories, {int? prefferedSize,diff --git a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dartindex a0ab84d429..fca006b7cf 100644--- a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart+++ b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart@@ -477,11 +477,6 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {);}- /// Used to check if user has touched the screen and then to pause animation- /// and once the pointer is removed from the screen, it resumes the animation- /// It also resets the zoom of the photo view to default for better user- /// experience after finger(s) is removed from the screen after zooming in by- /// pinching.void _hasPointerListener() {if (hasPointerOnScreenNotifier.value) {_toggleAnimation(pause: true);diff --git a/mobile/apps/photos/lib/ui/viewer/file/video_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/video_widget.dartindex c5ae5aa62b..5435d9b482 100644--- a/mobile/apps/photos/lib/ui/viewer/file/video_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/video_widget.dart@@ -72,7 +72,6 @@ class _VideoWidgetState extends State<VideoWidget> {void initState() {super.initState();widget.activeItemIndexListenable?.addListener(_onActiveItemChanged);- // Automatic error fallback: switch to MediaKit when native player failsuseMediaKitForVideoSubscription = Bus.instance.on<UseMediaKitForVideo>().listen((event) {