Skip to content

Commit

Permalink
Remove unnecessary public empty constructors in Glide transformations.
Browse files Browse the repository at this point in the history
These are no longer necessary now that the deprecated constructors have been removed.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=178665733
  • Loading branch information
sjudd committed Dec 11, 2017
1 parent 144ac53 commit 150ebab
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ public class CenterCrop extends BitmapTransformation {
private static final String ID = "com.bumptech.glide.load.resource.bitmap.CenterCrop";
private static final byte[] ID_BYTES = ID.getBytes(CHARSET);

public CenterCrop() {
// Intentionally empty.
}

// Bitmap doesn't implement equals, so == and .equals are equivalent here.
@SuppressWarnings("PMD.CompareObjectsWithEquals")
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ public class CenterInside extends BitmapTransformation {
private static final String ID = "com.bumptech.glide.load.resource.bitmap.CenterInside";
private static final byte[] ID_BYTES = ID.getBytes(CHARSET);

public CenterInside() {
// Intentionally empty.
}

@Override
protected Bitmap transform(
@NonNull BitmapPool pool, @NonNull Bitmap toTransform, int outWidth, int outHeight) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ public class FitCenter extends BitmapTransformation {
private static final String ID = "com.bumptech.glide.load.resource.bitmap.FitCenter";
private static final byte[] ID_BYTES = ID.getBytes(CHARSET);

public FitCenter() {
// Intentionally empty.
}

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

0 comments on commit 150ebab

Please sign in to comment.