This commit is contained in:
Dimitris
2026-05-09 09:46:30 +02:00
parent ffa0d47e7b
commit 357a9af4f1
7 changed files with 0 additions and 23 deletions
@@ -599,22 +599,6 @@ class NavigationViewModel(private val repository: NavigationRepository) : ViewMo
}
}
/**
* Queries Tankerkoenig API for fuel prices on current road.
*
*/
fun updateFuelPrices(
location: Location,
) {
viewModelScope.launch(Dispatchers.IO) {
synchronized(this) {
val stations =
FuelPrices().getFuelPrices(location, 3)
Log.d(TAG, "FuelPrices $stations")
}
}
}
/**
* Saves a place as a favorite in Preferences.
*/
@@ -62,7 +62,6 @@ class RouteCalculator(var routeModel: RouteModel) {
steps[match.stepIndex].waypointIndex = match.waypointIndex
steps[match.stepIndex].wayPointLocation = match.location
}
Log.d(TAG, "FindStep optimized: count=$searchCount, dist=$nearestDistance")
return
}
lastDistance = distance
@@ -73,7 +72,6 @@ class RouteCalculator(var routeModel: RouteModel) {
steps[match.stepIndex].waypointIndex = match.waypointIndex
steps[match.stepIndex].wayPointLocation = match.location
}
Log.d(TAG, "FindStep not optimized: count=$searchCount, dist=$nearestDistance")
}
private fun stopSearch(nearestDistance: Float, distance: Float, increaseCount: Int): Boolean {