Skip to content

Commit

Permalink
Merge pull request #205 from jnavarrom/master
Browse files Browse the repository at this point in the history
Remove no needed code
  • Loading branch information
rolandleth authored Jun 9, 2020
2 parents 8fc775b + a086293 commit adfdba9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 4.0.2
* Minor change: remove no needed code related to unsupported iOS versions (iOS < 7).

# 4.0.1
* Made `isCurrentlyOnScreen` public.

Expand Down
5 changes: 0 additions & 5 deletions LTHPasscodeViewController/LTHPasscodeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@

#define LTHiPad ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
#define LTHFailedAttemptLabelHeight [_failedAttemptLabel.text sizeWithAttributes: @{NSFontAttributeName : _labelFont}].height
#else
// Thanks to Kent Nguyen - https://github.com/kentnguyen
#define LTHFailedAttemptLabelHeight [_failedAttemptLabel.text sizeWithFont:_labelFont].height
#endif

#ifndef LTHPasscodeViewControllerStrings
#define LTHPasscodeViewControllerStrings(key) \
Expand Down

0 comments on commit adfdba9

Please sign in to comment.