mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +00:00
Delete unused code
This commit is contained in:
parent
c23b435408
commit
dacc385217
2 changed files with 0 additions and 15 deletions
|
@ -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 a new issue