Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
x2on committed Sep 18, 2015
1 parent 0225c6f commit 78dc995
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions FSImageViewer/FSImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,8 @@ - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)vi

if (scrollView.zoomScale > 1.0f) {

CGFloat height, width;
height = MIN(CGRectGetHeight(self.imageView.frame) + self.imageView.frame.origin.x, CGRectGetHeight(self.bounds));
width = MIN(CGRectGetWidth(self.imageView.frame) + self.imageView.frame.origin.y, CGRectGetWidth(self.bounds));

CGFloat height;
CGFloat width;

if (CGRectGetMaxX(self.imageView.frame) > self.bounds.size.width) {
width = CGRectGetWidth(self.bounds);
Expand Down

0 comments on commit 78dc995

Please sign in to comment.