diff --git a/ui/macosx/sparkle_bridge.h b/ui/macosx/sparkle_bridge.h index 844e54d6ed..8ba7e4a8af 100644 --- a/ui/macosx/sparkle_bridge.h +++ b/ui/macosx/sparkle_bridge.h @@ -22,6 +22,4 @@ void sparkle_software_update_init(const char *url, bool enabled, int interval); void sparkle_software_update_check(void); -void sparkle_software_update_cleanup(void); - #endif // SPARKLE_BRIDGE_H diff --git a/ui/macosx/sparkle_bridge.m b/ui/macosx/sparkle_bridge.m index a596fcb0bc..7a6509ad88 100644 --- a/ui/macosx/sparkle_bridge.m +++ b/ui/macosx/sparkle_bridge.m @@ -53,21 +53,3 @@ void sparkle_software_update_check(void) { [[SparkleBridge sharedStandardUpdaterController] checkForUpdates: [[NSApplication sharedApplication] delegate]]; } - -// Sparkle requires NSApplicationWillTerminateNotification in order to -// properly update in the background. -// -// https://github.com/sparkle-project/Sparkle/issues/232 -// https://github.com/sparkle-project/Sparkle/issues/892 -// https://github.com/sparkle-project/Sparkle/issues/839 -// -// This depends on the Sparkle framework being able to run Autoupdate.app. -// If that's not reliable we might want to disable SUAllowsAutomaticUpdates -// above. - -void sparkle_software_update_cleanup() -{ - [[NSNotificationCenter defaultCenter] - postNotificationName:@"NSApplicationWillTerminateNotification" - object:nil]; -} diff --git a/ui/software_update.c b/ui/software_update.c index 2b6c97c8f7..8d30baf125 100644 --- a/ui/software_update.c +++ b/ui/software_update.c @@ -157,7 +157,6 @@ software_update_check(void) { /** Clean up software update checking. */ void software_update_cleanup(void) { - sparkle_software_update_cleanup(); } const char *software_update_info(void) {