summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/java/com/wireguard/android/util
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-09-17 19:36:44 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-09-17 19:36:44 +0530
commit306d0648c68959929f51f578479191c255dcb75d (patch)
treeb0f58e30943b56acf56d48a5c8f4114bb14dfffc /ui/src/main/java/com/wireguard/android/util
parente99ccf901312a0c4f995b2f286feb0fd87ad9c88 (diff)
ui: refactor AddTunnelsSheet's selection communication
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui/src/main/java/com/wireguard/android/util')
-rw-r--r--ui/src/main/java/com/wireguard/android/util/Extensions.kt5
1 files changed, 0 insertions, 5 deletions
diff --git a/ui/src/main/java/com/wireguard/android/util/Extensions.kt b/ui/src/main/java/com/wireguard/android/util/Extensions.kt
index 22ef8bd7..e8482cfb 100644
--- a/ui/src/main/java/com/wireguard/android/util/Extensions.kt
+++ b/ui/src/main/java/com/wireguard/android/util/Extensions.kt
@@ -8,7 +8,6 @@ package com.wireguard.android.util
import android.content.Context
import android.util.TypedValue
import androidx.annotation.AttrRes
-import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.preference.Preference
import com.wireguard.android.Application
@@ -21,10 +20,6 @@ fun Context.resolveAttribute(@AttrRes attrRes: Int): Int {
return typedValue.data
}
-fun Fragment.requireTargetFragment(): Fragment {
- return requireNotNull(targetFragment) { "A target fragment should always be set for $this" }
-}
-
val Any.applicationScope: CoroutineScope
get() = Application.getCoroutineScope()