diff --git a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt index e1b0b6b56..c6164fa82 100644 --- a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt +++ b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt @@ -1459,7 +1459,6 @@ class MeshService : Service() { private fun onConnectionChanged(c: ConnectionState) { if (connectionStateHolder.connectionState.value == c && c !is ConnectionState.Connected) return Timber.d("onConnectionChanged: ${connectionStateHolder.connectionState.value} -> $c") - serviceRepository.setConnectionTransport(currentTransport()) // Cancel any existing timeouts sleepTimeout?.cancel() diff --git a/core/service/src/main/kotlin/org/meshtastic/core/service/ServiceRepository.kt b/core/service/src/main/kotlin/org/meshtastic/core/service/ServiceRepository.kt index 6f9925bc6..08864a28c 100644 --- a/core/service/src/main/kotlin/org/meshtastic/core/service/ServiceRepository.kt +++ b/core/service/src/main/kotlin/org/meshtastic/core/service/ServiceRepository.kt @@ -49,14 +49,6 @@ class ServiceRepository @Inject constructor() { _connectionState.value = connectionState } - private val _connectionTransport: MutableStateFlow = MutableStateFlow("Unknown") - val connectionTransport: StateFlow - get() = _connectionTransport - - fun setConnectionTransport(connectionTransport: String) { - _connectionTransport.value = connectionTransport - } - private val _clientNotification = MutableStateFlow(null) val clientNotification: StateFlow get() = _clientNotification