diff --git a/app/src/main/java/org/schabi/newpipe/player/playback/MediaSourceManager.java b/app/src/main/java/org/schabi/newpipe/player/playback/MediaSourceManager.java index 33cd7cdc0..583c4b8e7 100644 --- a/app/src/main/java/org/schabi/newpipe/player/playback/MediaSourceManager.java +++ b/app/src/main/java/org/schabi/newpipe/player/playback/MediaSourceManager.java @@ -324,7 +324,6 @@ public class MediaSourceManager { private void maybeSynchronizePlayer() { maybeUnblock(); maybeSync(); - cleanPlaylist(); } /*////////////////////////////////////////////////////////////////////////// @@ -477,20 +476,6 @@ public class MediaSourceManager { "index=[" + currentIndex + "], item=[" + currentItem.getTitle() + "]"); playlist.invalidate(currentIndex, this::loadImmediate); } - - /** - * Scans the entire playlist for {@link ManagedMediaSource}s that requires correction, - * and replaces these sources with a {@link PlaceholderMediaSource} if they are not part - * of the excluded items. - * */ - private void cleanPlaylist() { - if (DEBUG) Log.d(TAG, "cleanPlaylist() called."); - for (final PlayQueueItem item : playQueue.getStreams()) { - if (isCorrectionNeeded(item)) { - playlist.invalidate(playQueue.indexOf(item)); - } - } - } /*////////////////////////////////////////////////////////////////////////// // MediaSource Playlist Helpers //////////////////////////////////////////////////////////////////////////*/