refactor: Remove unused connection transport state (#3933)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-12-08 14:22:17 -06:00 committed by GitHub
parent 9246b3b6c1
commit 03232047fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 9 deletions

View file

@ -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()

View file

@ -49,14 +49,6 @@ class ServiceRepository @Inject constructor() {
_connectionState.value = connectionState
}
private val _connectionTransport: MutableStateFlow<String> = MutableStateFlow("Unknown")
val connectionTransport: StateFlow<String>
get() = _connectionTransport
fun setConnectionTransport(connectionTransport: String) {
_connectionTransport.value = connectionTransport
}
private val _clientNotification = MutableStateFlow<MeshProtos.ClientNotification?>(null)
val clientNotification: StateFlow<MeshProtos.ClientNotification?>
get() = _clientNotification