From 22b9e912f6b14809eb20a10b85af535b532d4157 Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Mon, 19 Feb 2024 12:09:51 +0100 Subject: [PATCH] Remove unused completion (IOS-192) --- .../Sources/MastodonCore/AuthenticationServiceProvider.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MastodonSDK/Sources/MastodonCore/AuthenticationServiceProvider.swift b/MastodonSDK/Sources/MastodonCore/AuthenticationServiceProvider.swift index f5a9c5ea8..544d3836d 100644 --- a/MastodonSDK/Sources/MastodonCore/AuthenticationServiceProvider.swift +++ b/MastodonSDK/Sources/MastodonCore/AuthenticationServiceProvider.swift @@ -106,7 +106,7 @@ public extension AuthenticationServiceProvider { userDefaults.didMigrateAuthentications == false } - func fetchAccounts(apiService: APIService, completion: (() -> Void)? = nil) async { + func fetchAccounts(apiService: APIService) async { // FIXME: This is a dirty hack to make the performance-stuff work. // Problem is, that we don't persist the user on disk anymore. So we have to fetch // it when we need it to display on the home timeline. @@ -120,10 +120,7 @@ public extension AuthenticationServiceProvider { } NotificationCenter.default.post(name: .userFetched, object: nil) - - completion?() } - } // MARK: - Private