Skip to content

Commit

Permalink
Remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jawnnypoo committed Aug 2, 2016
1 parent 6ff76cd commit 97bfec6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
9 changes: 0 additions & 9 deletions library/src/main/java/uk/co/senab/photoview/IPhotoView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
8 changes: 0 additions & 8 deletions library/src/main/java/uk/co/senab/photoview/PhotoView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 97bfec6

Please sign in to comment.