summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android/util/Extensions.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/wireguard/android/util/Extensions.kt')
-rw-r--r--app/src/main/java/com/wireguard/android/util/Extensions.kt16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/Extensions.kt b/app/src/main/java/com/wireguard/android/util/Extensions.kt
deleted file mode 100644
index 6b528a85..00000000
--- a/app/src/main/java/com/wireguard/android/util/Extensions.kt
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright © 2020 WireGuard LLC. All Rights Reserved.
- * SPDX-License-Identifier: Apache-2.0
- */
-
-package com.wireguard.android.util
-
-import android.content.Context
-import android.util.TypedValue
-import androidx.annotation.AttrRes
-
-fun Context.resolveAttribute(@AttrRes attrRes: Int): Int {
- val typedValue = TypedValue()
- theme.resolveAttribute(attrRes, typedValue, true)
- return typedValue.data
-}