1
0
Fork 0
mirror of https://github.com/Corewala/Buran synced 2024-12-21 23:32:40 +00:00

Removed unused transverse function

This commit is contained in:
Corewala 2022-08-04 12:18:47 -04:00
parent eee109bb28
commit eac1adb0cb

View file

@ -64,34 +64,6 @@ class OppenURI constructor(private var ouri: String) {
return ouri
}
fun traverse(): OppenURI{
val path = ouri.removePrefix("$GEMSCHEME$host")
val segments = path.split(SOLIDUS).filter { it.isNotEmpty() }
var nouri = "$GEMSCHEME$host"
when (ouri) {
"" -> {
}
GEMSCHEME -> ouri = ""
"$nouri/" -> ouri = GEMSCHEME
else -> {
when {
segments.isNotEmpty() -> {
val remaining = segments.dropLast(1)
remaining.forEach { segment ->
nouri += "/$segment"
}
ouri = "$nouri/"
}
else -> ouri = "$nouri/"
}
}
}
return this
}
private fun traverse(count: Int): String{
val path = ouri.removePrefix("$GEMSCHEME$host")
val segments = path.split(SOLIDUS).filter { it.isNotEmpty() }