mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Remove -[SUUpdater updateInProgress]
This method is not used anymore internally. Outside, the user driver should be used instead.
This commit is contained in:
1 parent
ac0aaddefa
commit
c58eaa205e
2 files changed
-16
No files matched your search
Vendored
-7
@@ -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
|
||||
Vendored
-9
@@ -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
|
||||
Reference in new issue
Block a user