Skip to content

Commit

Permalink
fixup: detekt lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 22, 2024
1 parent bdae4b2 commit d47e8fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class ConnectivityListener(val connectivityManager: ConnectivityManager) {
.stateIn(scope, SharingStarted.Eagerly, false)
}

fun unregister() {}

private fun dnsServerChanges(): Flow<List<InetAddress>> =
connectivityManager
.defaultNetworkFlow()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ open class TalpidVpnService : LifecycleVpnService() {
connectivityListener.register(lifecycleScope)
}

@CallSuper
override fun onDestroy() {
super.onDestroy()
connectivityListener.unregister()
}

fun openTun(config: TunConfig): CreateTunResult {
synchronized(this) {
val tunStatus = activeTunStatus
Expand Down

0 comments on commit d47e8fd

Please sign in to comment.