Delete some files that are no longer used

This commit is contained in:
Olof Hedman
2025-09-24 16:47:55 +02:00
parent b98a12abe0
commit 34a2854d69
7 changed files with 0 additions and 103 deletions

View File

@@ -1,25 +0,0 @@
package app.klottr.location
//import android.content.Context
//import com.google.android.gms.location.LocationServices
//import com.google.android.gms.location.Priority
//import kotlinx.coroutines.tasks.await
//
///** Android-implementation som använder FusedLocationProvider. */
//object AndroidLocationProvider : LocationProvider {
//
// /** Hämtar lastLocation och faller tillbaka till getCurrentLocation. */
// suspend fun currentOrLastKnown(context: Context): GeoPoint? {
// val client = LocationServices.getFusedLocationProviderClient(context)
// return try {
// val last = client.lastLocation.await()
// val loc = last ?: client.getCurrentLocation(Priority.PRIORITY_HIGH_ACCURACY, null).await()
// loc?.let { GeoPoint(it.latitude, it.longitude) }
// } catch (_: Exception) {
// null
// }
// }
//
// // Interface-override finns för framtida DI utan Context (används ej av :app idag).
// override suspend fun currentOrLastKnown(): GeoPoint? = null
//}

View File

@@ -1,7 +0,0 @@
package app.klottr.location
///** Android-implementationen håller bara ett volatilt fält. */
//actual object LastLocationStore {
// @Volatile
// actual var lastKnown: GeoPoint? = null
//}

View File

@@ -1,6 +0,0 @@
package app.klottr.location
///** Delad platsstore: senaste kända position som enkel GeoPoint. */
//expect object LastLocationStore {
// var lastKnown: GeoPoint?
//}

View File

@@ -1,10 +0,0 @@
package app.klottr.location
///** Enkel delad platsmodell för KMP. */
//data class GeoPoint(val lat: Double, val lon: Double)
//
///** Gränssnitt för plattforms-specifik platsinhämtning. */
//interface LocationProvider {
// /** Returnerar aktuell plats eller senaste kända, eller null vid fel/tidsutlöpning. */
// suspend fun currentOrLastKnown(): GeoPoint?
//}

View File

@@ -1,6 +0,0 @@
package app.klottr.location
//
///** iOS-stub tills riktig plats läggs till. */
//object IosLocationProvider : LocationProvider {
// override suspend fun currentOrLastKnown(): GeoPoint? = null
//}

View File

@@ -1,6 +0,0 @@
package app.klottr.location
///** iOS implementation keeps the last known point in memory. */
//actual object LastLocationStore {
// actual var lastKnown: GeoPoint? = null
//}