Delete unused code

This commit is contained in:
Justin Mazzocchi 2020-09-26 23:02:10 -07:00
parent c23b435408
commit dacc385217
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
2 changed files with 0 additions and 15 deletions

View File

@ -70,10 +70,4 @@ public extension ProfileService {
.flatMap { contentDatabase.insert(pinnedStatuses: $0, accountID: accountID) }
.eraseToAnyPublisher()
}
func fetchAccount() -> AnyPublisher<Never, Error> {
mastodonAPIClient.request(AccountEndpoint.accounts(id: accountID))
.flatMap { contentDatabase.insert(accounts: [$0]) }
.eraseToAnyPublisher()
}
}

View File

@ -66,12 +66,3 @@ public class ProfileViewModel: StatusListViewModel {
$accountViewModel.map { $0?.accountName }.eraseToAnyPublisher()
}
}
public extension ProfileViewModel {
func fetchAccount() {
profileService.fetchAccount()
.assignErrorsToAlertItem(to: \.alertItem, on: self)
.sink { _ in }
.store(in: &cancellables)
}
}