Skip to content

Commit

Permalink
Remove unused code from playlist.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aidewoode committed Oct 25, 2023
1 parent 3d65e1d commit 45b3e9f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/javascript/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ class Playlist {
return this.#indexOfSongs(this.songs, songId)
}

move (fromIndex, toIndex) {
this.orderedSongs.splice(toIndex, 0, this.orderedSongs.splice(fromIndex, 1)[0])
}

#indexOfSongs (songs, songId) {
return songs.map((song) => song.id).indexOf(Number(songId))
}
Expand Down

0 comments on commit 45b3e9f

Please sign in to comment.