Remove redundant method

This commit is contained in:
Zorg committed 2021-01-29 22:15:50 -08:00
1 parent e089b9b435
commit 044313db59
1 file changed
+1 -6
+1 -6
View File
@@ -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];