macos: Remove no longer needed function

Fixes #18221
This commit is contained in:
Roland Knall 2022-07-25 11:42:25 +02:00 committed by Gerald Combs
parent 4be3ae9738
commit cb8fc2874c
3 changed files with 0 additions and 21 deletions

View File

@ -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

View File

@ -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];
}

View File

@ -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) {