移除没用到的类
This commit is contained in:
parent
fb21c238d0
commit
91a686aec6
@ -1,20 +0,0 @@
|
|||||||
package com.yutou.nas_music_player.tools
|
|
||||||
|
|
||||||
class Helpers {
|
|
||||||
companion object {
|
|
||||||
fun sectionsHelper(sections: MutableList<String>, test: ArrayList<String>): HashMap<Int, Int> {
|
|
||||||
val mapOfSections = hashMapOf<Int, Int>()
|
|
||||||
var lastFound = 0
|
|
||||||
test.forEachIndexed { index, s ->
|
|
||||||
if (sections.any { it == s }) {
|
|
||||||
val value = sections.indexOfFirst { it == s }
|
|
||||||
mapOfSections[index] = value
|
|
||||||
lastFound = value
|
|
||||||
} else {
|
|
||||||
mapOfSections[index] = lastFound
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return mapOfSections
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user