Remove -[SUUpdater updateInProgress]

This method is not used anymore internally. Outside, the user driver should
be used instead.
This commit is contained in:
Zorg committed 2016-03-27 15:56:17 -04:00
1 parent ac0aaddefa
commit c58eaa205e
2 files changed
-16

No files matched your search

-7
View File
@@ -119,13 +119,6 @@ SU_EXPORT @interface SUUpdater : NSObject
*/
- (void)resetUpdateCycle;
/*!
Returns if an update is in progress or not
This may be used for menu item validation to see if the user can check for updates.
*/
@property (readonly) BOOL updateInProgress;
@end
#endif
-9
View File
@@ -341,10 +341,6 @@ static void SUCheckForUpdatesInBgReachabilityCheck(__weak SUUpdater *updater, id
- (void)checkForUpdatesWithDriver:(id <SUUpdateDriver> )d
{
// if ([self updateInProgress]) {
// return;
// }
if (self.driver != nil) {
return;
}
@@ -601,11 +597,6 @@ static void SUCheckForUpdatesInBgReachabilityCheck(__weak SUUpdater *updater, id
self.driver = nil;
}
- (BOOL)updateInProgress
{
return (self.driver != nil || [SUProbeInstallStatus probeInstallerInProgressForHost:self.host]);
}
- (NSBundle *)hostBundle { return [self.host bundle]; }
@end