mirror of
https://github.com/Corewala/Buran
synced 2024-12-22 07:42:43 +00:00
Removed unused transverse function
This commit is contained in:
parent
eee109bb28
commit
eac1adb0cb
1 changed files with 0 additions and 28 deletions
|
@ -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() }
|
||||
|
|
Loading…
Reference in a new issue