mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-03 14:14:26 +02:00
refactor: remove dead code
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
709b5a0fec
commit
1029d56a52
@ -227,21 +227,4 @@ internal fun parametersEqual(
|
|||||||
|
|
||||||
internal val nullOutputStream = object : OutputStream() {
|
internal val nullOutputStream = object : OutputStream() {
|
||||||
override fun write(b: Int) {}
|
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<String> {
|
|
||||||
val parameters = mutableListOf<String>()
|
|
||||||
var parameter = ""
|
|
||||||
for (char in this.toCharArray()) {
|
|
||||||
parameter += char
|
|
||||||
if (char == '[') continue
|
|
||||||
|
|
||||||
parameters.add(parameter)
|
|
||||||
parameter = ""
|
|
||||||
}
|
|
||||||
return parameters
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user