Remove unused Vito DrawableListener
@@ -43,10 +43,6 @@ import javax.annotation.Nullable;
@Nullsafe(Nullsafe.Mode.LOCAL)
public class FrescoController2Impl implements DrawableDataSubscriber, FrescoController2 {
- public interface DrawableListener {
- void onNewDrawableCreated(FrescoDrawableInterface drawable);
- }
-
private static final Map<String, Object> COMPONENT_EXTRAS =
ImmutableMap.<String, Object>of("component_tag", "vito2");
private static final Map<String, Object> SHORTCUT_EXTRAS =
@@ -61,7 +57,6 @@ public class FrescoController2Impl implements DrawableDataSubscriber, FrescoCont
private final DebugOverlayFactory2 mDebugOverlayFactory;
private final @Nullable Supplier<ControllerListener2<ImageInfo>> mImagePerfListenerSupplier;
private final VitoImagePerfListener mVitoImagePerfListener;
- private @Nullable DrawableListener mDrawableListener;
public FrescoController2Impl(
FrescoVitoConfig config,
@@ -86,19 +81,10 @@ public class FrescoController2Impl implements DrawableDataSubscriber, FrescoCont
@Override
public FrescoDrawable2 createDrawable() {
- FrescoDrawable2 drawable =
- new FrescoDrawable2Impl(
+ return new FrescoDrawable2Impl(
mConfig.useNewReleaseCallback(),
mImagePerfListenerSupplier == null ? null : mImagePerfListenerSupplier.get(),
mVitoImagePerfListener);
- if (mDrawableListener != null) {
- mDrawableListener.onNewDrawableCreated(drawable);
- }
- return drawable;
- }
-
- public void setDrawableListener(@Nullable DrawableListener drawableListener) {
- mDrawableListener = drawableListener;
}
@Override
