removing some unused functions

This commit is contained in:
tibbi 2020-10-23 22:58:25 +02:00
parent 5172851dd9
commit 0eeaf5b4a9

View file

@ -12,15 +12,6 @@ import com.simplemobiletools.musicplayer.models.Track
import org.greenrobot.eventbus.EventBus
class RoomHelper(val context: Context) {
fun addPathToPlaylist(path: String) {
addPathsToPlaylist(arrayListOf(path))
}
fun addPathsToPlaylist(paths: ArrayList<String>, playlistId: Int = context.config.currentPlaylist) {
val tracks = getTracksFromPaths(paths, playlistId)
context.tracksDAO.insertAll(tracks)
}
fun insertTracksWithPlaylist(tracks: ArrayList<Track>) {
context.tracksDAO.insertAll(tracks)
EventBus.getDefault().post(Events.PlaylistsUpdated())