rm irrelevant comment

This commit is contained in:
Drew Weymouth
2024-03-03 11:50:07 -08:00
parent 151dbb9edf
commit 67c5edbbde
-3
View File
@@ -197,9 +197,6 @@ func (a *NowPlayingPage) OnPlayTimeUpdate(_, _ float64) {
} }
func (a *NowPlayingPage) doSetNewTrackOrder(trackIDs []string, op sharedutil.TrackReorderOp) { func (a *NowPlayingPage) doSetNewTrackOrder(trackIDs []string, op sharedutil.TrackReorderOp) {
// Since the tracklist view may be sorted in a different order than the
// actual running order, we need to get the IDs of the selected tracks
// from the tracklist and convert them to indices in the *original* run order
idxs := make([]int, 0, len(trackIDs)) idxs := make([]int, 0, len(trackIDs))
for i, tr := range a.queue { for i, tr := range a.queue {
if sharedutil.SliceContains(trackIDs, tr.ID) { if sharedutil.SliceContains(trackIDs, tr.ID) {