From 1029d56a5203dc846c50fefe1c8b2bfbaad50c45 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 10 Feb 2023 05:17:09 +0100 Subject: [PATCH] refactor: remove dead code Signed-off-by: oSumAtrIX --- .../revanced/patcher/extensions/Extensions.kt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt b/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt index 607b24d..6ccf06c 100644 --- a/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt +++ b/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt @@ -227,21 +227,4 @@ internal fun parametersEqual( internal val nullOutputStream = object : OutputStream() { override fun write(b: Int) {} -} - -/** - * Should be used to parse a list of parameters represented by their first letter, - * or in the case of arrays prefixed with an unspecified amount of '[' character. - */ -internal fun String.parseParameters(): List { - val parameters = mutableListOf() - var parameter = "" - for (char in this.toCharArray()) { - parameter += char - if (char == '[') continue - - parameters.add(parameter) - parameter = "" - } - return parameters } \ No newline at end of file