Skip to content

Commit

Permalink
Removing unused defines
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardocallado committed Sep 26, 2014
1 parent 9f5fdd7 commit 9f4f34f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
15 changes: 0 additions & 15 deletions Classes/IDMPBConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@
//
//

#define SYSTEM_VERSION_EQUAL_TO(v) \
([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)

#define SYSTEM_VERSION_GREATER_THAN(v) \
([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)

#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) \
([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)

#define SYSTEM_VERSION_LESS_THAN(v) \
([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)

#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) \
([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)

#define PADDING 10
#define PAGE_INDEX_TAG_OFFSET 1000
#define PAGE_INDEX(page) ([(page) tag] - PAGE_INDEX_TAG_OFFSET)
Expand Down
4 changes: 2 additions & 2 deletions Classes/IDMZoomingScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ - (id)initWithPhotoBrowser:(IDMPhotoBrowser *)browser {
_progressView = [[DACircularProgressView alloc] initWithFrame:CGRectMake((screenWidth-35.)/2., (screenHeight-35.)/2, 35.0f, 35.0f)];
[_progressView setProgress:0.0f];
_progressView.tag = 101;
_progressView.thicknessRatio = 0.1; //SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7") ? 0.1 : 0.2;
_progressView.roundedCorners = NO; //SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7") ? NO : YES;
_progressView.thicknessRatio = 0.1;
_progressView.roundedCorners = NO;
_progressView.trackTintColor = browser.trackTintColor ? self.photoBrowser.trackTintColor : [UIColor colorWithWhite:0.2 alpha:1];
_progressView.progressTintColor = browser.progressTintColor ? self.photoBrowser.progressTintColor : [UIColor colorWithWhite:1.0 alpha:1];
[self addSubview:_progressView];
Expand Down

0 comments on commit 9f4f34f

Please sign in to comment.