Remove dead code.

This commit is contained in:
Sven Weidauer 2022-11-26 16:38:02 +01:00
parent 5608cad673
commit a247bfc91f
1 changed files with 0 additions and 10 deletions

View File

@ -108,11 +108,6 @@ extension MastodonStatusPublisher: StatusPublisher {
// Task: attachment
let uploadContext = AttachmentViewModel.UploadContext(
apiService: api,
authContext: authContext
)
var attachmentIDs: [Mastodon.Entity.Attachment.ID] = []
for attachmentViewModel in attachmentViewModels {
// set progress
@ -161,11 +156,6 @@ extension MastodonStatusPublisher: StatusPublisher {
guard pollOptions != nil else { return nil }
return self.pollExpireConfigurationOption.seconds
}()
let pollMultiple: Bool? = {
guard self.isPollComposing else { return nil }
guard pollOptions != nil else { return nil }
return self.pollMultipleConfigurationOption
}()
let inReplyToID: Mastodon.Entity.Status.ID? = try await api.backgroundManagedObjectContext.perform {
guard let replyTo = self.replyTo?.object(in: api.backgroundManagedObjectContext) else { return nil }
return replyTo.id