Skip to content

Commit c44d509

Browse files
icbakerivanbuper
authored andcommitted
Remove // Do nothing overrides from EventLogger
These methods are marked `default` on the `AnalyticsListener` interface with an empty implementation, so there's no need to override them just to re-define the empty implementation. PiperOrigin-RevId: 689416584 (cherry picked from commit 757f223)
1 parent 8ca80a6 commit c44d509

File tree

1 file changed

+0
-28
lines changed
  • libraries/exoplayer/src/main/java/androidx/media3/exoplayer/util

1 file changed

+0
-28
lines changed

libraries/exoplayer/src/main/java/androidx/media3/exoplayer/util/EventLogger.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,6 @@ public void onVideoSizeChanged(EventTime eventTime, VideoSize videoSize) {
475475
logd(eventTime, "videoSize", videoSize.width + ", " + videoSize.height);
476476
}
477477

478-
@UnstableApi
479-
@Override
480-
public void onLoadStarted(
481-
EventTime eventTime, LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData) {
482-
// Do nothing.
483-
}
484-
485478
@UnstableApi
486479
@Override
487480
public void onLoadError(
@@ -493,27 +486,6 @@ public void onLoadError(
493486
printInternalError(eventTime, "loadError", error);
494487
}
495488

496-
@UnstableApi
497-
@Override
498-
public void onLoadCanceled(
499-
EventTime eventTime, LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData) {
500-
// Do nothing.
501-
}
502-
503-
@UnstableApi
504-
@Override
505-
public void onLoadCompleted(
506-
EventTime eventTime, LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData) {
507-
// Do nothing.
508-
}
509-
510-
@UnstableApi
511-
@Override
512-
public void onBandwidthEstimate(
513-
EventTime eventTime, int totalLoadTimeMs, long totalBytesLoaded, long bitrateEstimate) {
514-
// Do nothing.
515-
}
516-
517489
@UnstableApi
518490
@Override
519491
public void onSurfaceSizeChanged(EventTime eventTime, int width, int height) {

0 commit comments

Comments
 (0)