diff --git a/app/src/main/java/com/qhy040404/libraryonetap/utils/extensions/CollectionExtensions.kt b/app/src/main/java/com/qhy040404/libraryonetap/utils/extensions/CollectionExtensions.kt deleted file mode 100644 index eb2c2ae8..00000000 --- a/app/src/main/java/com/qhy040404/libraryonetap/utils/extensions/CollectionExtensions.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.qhy040404.libraryonetap.utils.extensions - -/** - * Check if a element of a collection of char or string is in the target string - * - * @param string - */ -fun Collection.hasElementIn(string: String): Boolean { - this.forEach { - return string.contains(it) - } - return false -} diff --git a/app/src/main/java/com/qhy040404/libraryonetap/utils/web/Requests.kt b/app/src/main/java/com/qhy040404/libraryonetap/utils/web/Requests.kt index c60bc723..3100a3c2 100644 --- a/app/src/main/java/com/qhy040404/libraryonetap/utils/web/Requests.kt +++ b/app/src/main/java/com/qhy040404/libraryonetap/utils/web/Requests.kt @@ -25,7 +25,6 @@ import java.util.concurrent.TimeUnit @Suppress("SpellCheckingInspection") object Requests { - var libInitialized = false var eduInitialized = false @@ -131,10 +130,7 @@ object Requests { return response.request.url.toString() } return runBlocking(Dispatchers.IO) { - response.body!!.string().also { - val b = form - val a = it - } + response.body!!.string() } } } catch (s: SocketTimeoutException) {