Skip to content

armgit / ente

Public Imported from GitHub
0

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

remove

Prateek Sunal8c721456654d
diff --git a/mobile/apps/photos/lib/main.dart b/mobile/apps/photos/lib/main.dart
index a2834c12c6..ec7f0e8f82 100644
--- a/mobile/apps/photos/lib/main.dart
+++ b/mobile/apps/photos/lib/main.dart
@@ -190,7 +190,7 @@ Future<void> _runMinimally(String taskId, TimeLogger tlog) async {
);
// Initialize ComputeController early in background run so health listeners
// and checks begin before MLService wiring.
- ensureComputeControllerInitialized();
+ computeController;
_logger.info("(for debugging) CollectionsService init $tlog");
await CollectionsService.instance.init(prefs);
diff --git a/mobile/apps/photos/lib/service_locator.dart b/mobile/apps/photos/lib/service_locator.dart
index 06c83f1f91..eafb4e5d3c 100644
--- a/mobile/apps/photos/lib/service_locator.dart
+++ b/mobile/apps/photos/lib/service_locator.dart
@@ -217,10 +217,6 @@ ComputeController get computeController {
return _computeController!;
}
-void ensureComputeControllerInitialized() {
- _computeController ??= ComputeController(localSettings);
-}
-
FaceRecognitionService? _faceRecognitionService;
FaceRecognitionService get faceRecognitionService {
_faceRecognitionService ??= FaceRecognitionService();