Skip to content

Commit

Permalink
Remove deprecated constructor in FitCenter
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=178304408
  • Loading branch information
sjudd committed Dec 9, 2017
1 parent b18a63f commit d840533
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import org.junit.Test;
import org.junit.function.ThrowingRunnable;
import org.junit.runner.RunWith;
import org.mockito.ArgumentMatchers;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

Expand Down Expand Up @@ -395,7 +394,7 @@ public void run() {
verify(requestListener)
.onResourceReady(
anyDrawable(),
ArgumentMatchers.any(),
any(),
anyDrawableTarget(),
eq(DataSource.MEMORY_CACHE),
anyBoolean());
Expand Down Expand Up @@ -433,7 +432,7 @@ public void loadIntoView_withSkipMemoryCache_doesNotLoadFromMemoryCacheIfPresent
verify(requestListener)
.onResourceReady(
anyDrawable(),
ArgumentMatchers.any(),
any(),
anyDrawableTarget(),
not(eq(DataSource.MEMORY_CACHE)),
anyBoolean());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentMatchers;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

Expand Down Expand Up @@ -486,7 +485,7 @@ public void loadFromBuilder_withDataDiskCacheStrategy_returnsFromSource() throws

verify(requestListener).onResourceReady(
anyDrawable(),
ArgumentMatchers.any(),
any(),
anyDrawableTarget(),
eq(DataSource.DATA_DISK_CACHE),
anyBoolean());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.bumptech.glide.load.resource.bitmap;

import android.content.Context;
import android.graphics.Bitmap;
import android.support.annotation.NonNull;
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
Expand All @@ -19,14 +18,6 @@ public FitCenter() {
// Intentionally empty.
}

/**
* @deprecated Use {@link #FitCenter()}.
*/
@Deprecated
public FitCenter(@SuppressWarnings("unused") Context context) {
this();
}

@Override
protected Bitmap transform(@NonNull BitmapPool pool, @NonNull Bitmap toTransform, int outWidth,
int outHeight) {
Expand Down

0 comments on commit d840533

Please sign in to comment.