From 54dd55db8c19667939536e18535ac9c45817e442 Mon Sep 17 00:00:00 2001 From: ivar Date: Wed, 6 May 2026 21:21:17 +0200 Subject: refactor: remove duplicate source files now served from Shared/ --- Solverv/SolvervApp.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Solverv/SolvervApp.swift') diff --git a/Solverv/SolvervApp.swift b/Solverv/SolvervApp.swift index a2beb1d..955a946 100644 --- a/Solverv/SolvervApp.swift +++ b/Solverv/SolvervApp.swift @@ -52,15 +52,6 @@ class LocationManager: NSObject, CLLocationManagerDelegate, ObservableObject { manager.requestWhenInUseAuthorization() } else if manager.authorizationStatus == .authorizedWhenInUse || manager.authorizationStatus == .authorizedAlways { fetchLocation() - } else { - // Use default location (Greenwich) - let defaultLocation = AppGroupManager.UserLocation( - latitude: 0.0, - longitude: 0.0, - timestamp: ISO8601DateFormatter().string(from: Date()), - isDefaultLocation: true - ) - AppGroupManager.shared.saveLocation(defaultLocation) } } @@ -83,6 +74,7 @@ class LocationManager: NSObject, CLLocationManagerDelegate, ObservableObject { timestamp: ISO8601DateFormatter().string(from: Date()), isDefaultLocation: false ) + AppGroupManager.shared.saveLocation(userLocation) // Calculate and cache sunrise/sunset -- cgit v1.3