aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/kotlin/helpers.kt
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/kotlin/helpers.kt')
-rw-r--r--common/src/main/kotlin/helpers.kt10
1 files changed, 0 insertions, 10 deletions
diff --git a/common/src/main/kotlin/helpers.kt b/common/src/main/kotlin/helpers.kt
index 895f82ad..fc361ab9 100644
--- a/common/src/main/kotlin/helpers.kt
+++ b/common/src/main/kotlin/helpers.kt
@@ -29,16 +29,6 @@ import java.io.InputStream
import java.io.ByteArrayOutputStream
import kotlin.random.Random
-fun getQueryParam(uriQueryString: String, param: String): String? {
- // TODO replace with ktor API ?
- uriQueryString.split('&').forEach {
- val kv = it.split('=')
- if (kv[0] == param)
- return kv[1]
- }
- return null
-}
-
/* ----- String ----- */
fun String.decodeBase64(): ByteArray = Base64.getDecoder().decode(this)