Delete unused code
This commit is contained in:
parent
c23b435408
commit
dacc385217
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue