Remove dead code

This commit is contained in:
Marcus Kida 2023-05-09 11:36:19 +02:00
parent 5efdb3c209
commit 93533654f8
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 2 additions and 10 deletions

View File

@ -18,7 +18,7 @@ extension DataSourceFacade {
dependency: dependency,
user: user
)
// fetchFollowedBlockedUserIds(in: viewModel)
if let userObject = user.object(in: dependency.context.managedObjectContext) {
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followingUserIds.append(userObject.id)
}
@ -35,7 +35,7 @@ extension DataSourceFacade {
dependency: dependency,
user: user
)
// fetchFollowedBlockedUserIds(in: viewModel)
if let userObject = user.object(in: dependency.context.managedObjectContext) {
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.blockedUserIds.append(userObject.id)
}
@ -43,12 +43,4 @@ extension DataSourceFacade {
break //no-op
}
}
// private static func fetchFollowedBlockedUserIds(in viewModel: FollowedBlockedUserIdProviding) {
// DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) { // hack: otherwise fetching the blocked users will not return the user followed
// Task { @MainActor in
// try await viewModel.fetchFollowedBlockedUserIds()
// }
// }
// }
}