From 1dd8a9dcb63aaf59d257cf0d56a1f7623eb6f080 Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 1 Feb 2019 20:14:33 +0800 Subject: [PATCH] Remove unused method --- mobile/src/main/java/be/mygod/vpnhotspot/util/Utils.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/util/Utils.kt b/mobile/src/main/java/be/mygod/vpnhotspot/util/Utils.kt index 7362a22b..05bae15f 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/util/Utils.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/util/Utils.kt @@ -28,8 +28,6 @@ fun Long.toPluralInt(): Int { return (this % 1000000000).toInt() + 1000000000 } -fun CharSequence?.onEmpty(otherwise: CharSequence): CharSequence = if (isNullOrEmpty()) otherwise else this!! - fun broadcastReceiver(receiver: (Context, Intent) -> Unit) = object : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) = receiver(context, intent) }