Skip to content

Commit

Permalink
[prefs] Don’t handle the old appearance methods past iOS 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Apr 30, 2020
1 parent 2a87b86 commit e72b2e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions prefs/HBListController.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ - (NSMutableArray *)loadSpecifiersFromPlistName:(NSString *)plistName target:(PS
#pragma mark - Appearance

- (NSArray *)_deprecatedAppearanceMethodsInUse {
if (IS_IOS_OR_NEWER(iOS_10_0)) {
return nil;
}

static NSArray *AppearanceDeprecations;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
Expand All @@ -124,9 +128,6 @@ - (NSArray *)_deprecatedAppearanceMethodsInUse {
SEL sel = NSSelectorFromString(selector);

// if we get something different from the default, then add it to the list
// TODO: we probably should be doing it right™ with methodForSelector:,
// but that broke something and i don’t really have the time to look into
// it just yet – http://stackoverflow.com/a/20058585/709376
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
if ([self.class performSelector:sel] != [HBListController performSelector:sel]) {
Expand Down

0 comments on commit e72b2e1

Please sign in to comment.