From 97bfec6df6b85d9198760e746ef6a828a12702d5 Mon Sep 17 00:00:00 2001 From: Jawnnypoo Date: Tue, 2 Aug 2016 17:58:44 -0500 Subject: [PATCH] Remove deprecated method --- .../main/java/uk/co/senab/photoview/IPhotoView.java | 9 --------- .../main/java/uk/co/senab/photoview/PhotoView.java | 8 -------- .../java/uk/co/senab/photoview/PhotoViewAttacher.java | 11 +---------- 3 files changed, 1 insertion(+), 27 deletions(-) diff --git a/library/src/main/java/uk/co/senab/photoview/IPhotoView.java b/library/src/main/java/uk/co/senab/photoview/IPhotoView.java index a597d436..640bb9d1 100755 --- a/library/src/main/java/uk/co/senab/photoview/IPhotoView.java +++ b/library/src/main/java/uk/co/senab/photoview/IPhotoView.java @@ -221,15 +221,6 @@ public interface IPhotoView { */ void setZoomable(boolean zoomable); - /** - * Enables rotation via PhotoView internal functions. Name is chosen so it won't collide with - * View.setRotation(float) in API since 11 - * - * @param rotationDegree - Degree to rotate PhotoView to, should be in range 0 to 360 - * @deprecated use {@link #setRotationTo(float)} - */ - void setPhotoViewRotation(float rotationDegree); - /** * Extracts currently visible area to Bitmap object, if there is no image loaded yet or the * ImageView is already destroyed, returns {@code null} diff --git a/library/src/main/java/uk/co/senab/photoview/PhotoView.java b/library/src/main/java/uk/co/senab/photoview/PhotoView.java index 78b0b8e6..f71f5c9e 100755 --- a/library/src/main/java/uk/co/senab/photoview/PhotoView.java +++ b/library/src/main/java/uk/co/senab/photoview/PhotoView.java @@ -60,14 +60,6 @@ protected void init() { } } - /** - * @deprecated use {@link #setRotationTo(float)} - */ - @Override - public void setPhotoViewRotation(float rotationDegree) { - mAttacher.setRotationTo(rotationDegree); - } - @Override public void setRotationTo(float rotationDegree) { mAttacher.setRotationTo(rotationDegree); diff --git a/library/src/main/java/uk/co/senab/photoview/PhotoViewAttacher.java b/library/src/main/java/uk/co/senab/photoview/PhotoViewAttacher.java index 5253e17d..beb42c33 100755 --- a/library/src/main/java/uk/co/senab/photoview/PhotoViewAttacher.java +++ b/library/src/main/java/uk/co/senab/photoview/PhotoViewAttacher.java @@ -315,15 +315,6 @@ public void setBaseRotation(final float degrees) { checkAndDisplayMatrix(); } - /** - * @deprecated use {@link #setRotationTo(float)} - */ - @Override - public void setPhotoViewRotation(float degrees) { - mSuppMatrix.setRotate(degrees % 360); - checkAndDisplayMatrix(); - } - @Override public void setRotationTo(float degrees) { mSuppMatrix.setRotate(degrees % 360); @@ -692,7 +683,7 @@ public void update() { } /** - * Like {@link #getDisplayMatrix()}, but allows the user to provide a matrix to copy the values into to reduce object allocation + * Get the display matrix * @param matrix target matrix to copy to */ @Override