From c58eaa205e6deff8a16cc83152bd37579343b929 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 27 Mar 2016 15:56:17 -0400 Subject: [PATCH] Remove -[SUUpdater updateInProgress] This method is not used anymore internally. Outside, the user driver should be used instead. --- Sparkle/SUUpdater.h | 7 ------- Sparkle/SUUpdater.m | 9 --------- 2 files changed, 16 deletions(-) diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index a937ada1..71fc369d 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -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 diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 6e899083..8a19a99a 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -341,10 +341,6 @@ static void SUCheckForUpdatesInBgReachabilityCheck(__weak SUUpdater *updater, id - (void)checkForUpdatesWithDriver:(id )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