diff --git a/library/common/src/main/java/com/google/android/exoplayer2/Bundleable.java b/library/common/src/main/java/com/google/android/exoplayer2/Bundleable.java index fe3227d0f1..29dae2e50e 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/Bundleable.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/Bundleable.java @@ -16,7 +16,6 @@ package com.google.android.exoplayer2; import android.os.Bundle; -import androidx.annotation.Nullable; /** * Interface for classes whose instance can be stored in a {@link Bundle} by {@link #toBundle()} and @@ -37,24 +36,6 @@ public interface Bundleable { /** Returns a {@link Bundle} representing the information stored in this object. */ Bundle toBundle(); - /** - * Converts a {@link Bundleable} to a {@link Bundle}. It's a convenient wrapper of {@link - * Bundleable#toBundle} that can take nullable values. - */ - @Nullable - static Bundle toNullableBundle(@Nullable Bundleable bundleable) { - return bundleable == null ? null : bundleable.toBundle(); - } - - /** - * Converts a {@link Bundle} to a {@link Bundleable}. It's a convenient wrapper of {@link - * Creator#fromBundle} that can take nullable values. - */ - @Nullable - static T fromNullableBundle(Creator creator, @Nullable Bundle bundle) { - return bundle == null ? null : creator.fromBundle(bundle); - } - /** Interface for the static {@code CREATOR} field of {@link Bundleable} classes. */ interface Creator {