移除没用到的类

This commit is contained in:
Yutousama 2022-05-18 19:34:26 +08:00
parent fb21c238d0
commit 91a686aec6

View File

@ -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
}
}
}