From b95fba2cb71c62f3c845a532252266a4e178126a Mon Sep 17 00:00:00 2001 From: olly Date: Tue, 11 May 2021 13:03:51 +0100 Subject: [PATCH] Remove deprecated Timeline.getWindow method PiperOrigin-RevId: 373126944 --- RELEASENOTES.md | 2 ++ .../main/java/com/google/android/exoplayer2/Timeline.java | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index e3a79cc3d9..fc80bc0c13 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -28,6 +28,8 @@ `setUsePreviousAction`, `setUseNextActionInCompactView` and `setUsePreviousActionInCompactView` instead. * Remove `Format.create` methods. Use `Format.Builder` instead. + * Remove `Timeline.getWindow(int, Window, boolean)`. Use + `Timeline.getWindow(int, Window)` instead, which will always set tags. * Remove `CastPlayer` specific playlist manipulation methods. Use `setMediaItems`, `addMediaItems`, `removeMediaItem` and `moveMediaItem` instead. diff --git a/library/common/src/main/java/com/google/android/exoplayer2/Timeline.java b/library/common/src/main/java/com/google/android/exoplayer2/Timeline.java index 79d21ab048..082cdf494b 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/Timeline.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/Timeline.java @@ -1042,12 +1042,6 @@ public abstract class Timeline implements Bundleable { return getWindow(windowIndex, window, /* defaultPositionProjectionUs= */ 0); } - /** @deprecated Use {@link #getWindow(int, Window)} instead. Tags will always be set. */ - @Deprecated - public final Window getWindow(int windowIndex, Window window, boolean setTag) { - return getWindow(windowIndex, window, /* defaultPositionProjectionUs= */ 0); - } - /** * Populates a {@link Window} with data for the window at the specified index. *