From 044313db594e8f3b4648aef5a890dd94bc5bf18e Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 29 Jan 2021 22:15:50 -0800 Subject: [PATCH] Remove redundant method --- Sparkle/SUAppcastDriver.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Sparkle/SUAppcastDriver.m b/Sparkle/SUAppcastDriver.m index 78e22554..5f1b0e31 100644 --- a/Sparkle/SUAppcastDriver.m +++ b/Sparkle/SUAppcastDriver.m @@ -117,7 +117,7 @@ + (SUAppcast *)filterSupportedAppcast:(SUAppcast *)appcast phasedUpdateGroup:(NSUInteger)phasedUpdateGroup inBackground:(BOOL)background { return [appcast copyByFilteringItems:^(SUAppcastItem *item) { - return (BOOL)[[self class] hostSupportsItem:item phasedUpdateGroup:phasedUpdateGroup inBackground:background]; + return (BOOL)([[self class] itemOperatingSystemIsOK:item] && [[self class] itemIsReadyForPhasedRollout:item phasedUpdateGroup:phasedUpdateGroup inBackground:background]); }]; } @@ -142,11 +142,6 @@ return item; } -+ (BOOL)hostSupportsItem:(SUAppcastItem *)ui phasedUpdateGroup:(NSUInteger)phasedUpdateGroup inBackground:(BOOL)background -{ - return [[self class] itemOperatingSystemIsOK:ui] && [[self class] itemIsReadyForPhasedRollout:ui phasedUpdateGroup:phasedUpdateGroup inBackground:background]; -} - + (BOOL)itemOperatingSystemIsOK:(SUAppcastItem *)ui { BOOL osOK = [ui isMacOsUpdate];