Skip to content

Commit dbc5380

Browse files
committed
Cleanup - PlayerHelper: Remove unused method
1 parent 0fa8de4 commit dbc5380

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@
3333
import com.google.android.exoplayer2.ui.AspectRatioFrameLayout;
3434
import com.google.android.exoplayer2.ui.AspectRatioFrameLayout.ResizeMode;
3535
import com.google.android.exoplayer2.ui.CaptionStyleCompat;
36-
import com.google.android.exoplayer2.util.MimeTypes;
3736

3837
import org.schabi.newpipe.R;
3938
import org.schabi.newpipe.extractor.InfoItem;
40-
import org.schabi.newpipe.extractor.MediaFormat;
4139
import org.schabi.newpipe.extractor.stream.StreamInfo;
4240
import org.schabi.newpipe.extractor.stream.StreamInfoItem;
4341
import org.schabi.newpipe.extractor.stream.SubtitlesStream;
@@ -120,15 +118,6 @@ public static String formatPitch(final double pitch) {
120118
}
121119

122120
@NonNull
123-
public static String subtitleMimeTypesOf(@NonNull final MediaFormat format) {
124-
switch (format) {
125-
case VTT:
126-
return MimeTypes.TEXT_VTT;
127-
case TTML:
128-
return MimeTypes.APPLICATION_TTML;
129-
default:
130-
throw new IllegalArgumentException("Unrecognized mime type: " + format.name());
131-
}
132121
}
133122

134123
@NonNull

0 commit comments

Comments
 (0)