From 7d459ab6ebf72617542780dc1f0f874d6ec60dcb Mon Sep 17 00:00:00 2001 From: Jay Ohms Date: Mon, 2 Dec 2024 10:05:54 -0500 Subject: [PATCH] Remove unreachable code --- .../core/files/delegates/GeolocationPermissionDelegate.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/src/main/kotlin/dev/hotwire/core/files/delegates/GeolocationPermissionDelegate.kt b/core/src/main/kotlin/dev/hotwire/core/files/delegates/GeolocationPermissionDelegate.kt index 5c8f440..994f358 100644 --- a/core/src/main/kotlin/dev/hotwire/core/files/delegates/GeolocationPermissionDelegate.kt +++ b/core/src/main/kotlin/dev/hotwire/core/files/delegates/GeolocationPermissionDelegate.kt @@ -97,11 +97,6 @@ class GeolocationPermissionDelegate(private val session: Session) { } else { null } - - // Only request "fine" location if provided in the app manifest, since - // the WebView requires this permission for location access. Granting - // "coarse" location does not work. See: https://issues.chromium.org/issues/40205003 - return manifestPermissions().firstOrNull { it == ACCESS_FINE_LOCATION } } private fun manifestPermissions(): Array {