From d50a43912e3246dac4f974adc4f616ea5dc2fb79 Mon Sep 17 00:00:00 2001 From: ibaker Date: Mon, 7 Feb 2022 15:18:20 +0000 Subject: [PATCH] Remove deprecated ProgressiveMediaSource.Factory setters #minor-release PiperOrigin-RevId: 426909957 --- .../source/ProgressiveMediaSource.java | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/source/ProgressiveMediaSource.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/source/ProgressiveMediaSource.java index 1714930513..d56fd4ca65 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/source/ProgressiveMediaSource.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/source/ProgressiveMediaSource.java @@ -126,40 +126,6 @@ public final class ProgressiveMediaSource extends BaseMediaSource this.continueLoadingCheckIntervalBytes = continueLoadingCheckIntervalBytes; } - /** - * @deprecated Pass the {@link ExtractorsFactory} via {@link #Factory(DataSource.Factory, - * ExtractorsFactory)}. This is necessary so that proguard can treat the default extractors - * factory as unused. - */ - @Deprecated - public Factory setExtractorsFactory(@Nullable ExtractorsFactory extractorsFactory) { - this.progressiveMediaExtractorFactory = - playerId -> - new BundledExtractorsAdapter( - extractorsFactory != null ? extractorsFactory : new DefaultExtractorsFactory()); - return this; - } - - /** - * @deprecated Use {@link MediaItem.Builder#setCustomCacheKey(String)} and {@link - * #createMediaSource(MediaItem)} instead. - */ - @Deprecated - public Factory setCustomCacheKey(@Nullable String customCacheKey) { - this.customCacheKey = customCacheKey; - return this; - } - - /** - * @deprecated Use {@link MediaItem.Builder#setTag(Object)} and {@link - * #createMediaSource(MediaItem)} instead. - */ - @Deprecated - public Factory setTag(@Nullable Object tag) { - this.tag = tag; - return this; - } - /** * Sets the {@link LoadErrorHandlingPolicy}. The default value is created by calling {@link * DefaultLoadErrorHandlingPolicy#DefaultLoadErrorHandlingPolicy()}.