loadfile: remove some dead code

034f75dacd removed the loop that could
cause !next to actually happen here. This code would never be executed
and is not needed.
This commit is contained in:
Dudemanguy committed 2023-11-18 14:48:44 -06:00
1 parent 69f3c70733
commit 77c9266975
1 file changed
+1 -4
+1 -4
View File
@@ -1958,11 +1958,8 @@ struct playlist_entry *mp_next_file(struct MPContext *mpctx, int direction,
bool force)
{
struct playlist_entry *next = playlist_get_next(mpctx->playlist, direction);
if (next && direction < 0 && !force) {
if (!next && mpctx->opts->loop_times == 1)
next = playlist_get_first(mpctx->playlist);
if (next && direction < 0 && !force)
next->playlist_prev_attempt = true;
}
if (!next && mpctx->opts->loop_times != 1) {
if (direction > 0) {
if (mpctx->opts->shuffle)