Remove unused completion (IOS-192)

This commit is contained in:
Nathan Mattes 2024-02-19 12:09:51 +01:00
parent 49af28eeba
commit 22b9e912f6

View File

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