Fix warnings

I guess that they made their way back into the app due to the merge
This commit is contained in:
Nathan Mattes 2024-01-08 22:48:35 +01:00
parent febbc6f22a
commit fe5c88254b
9 changed files with 0 additions and 11 deletions

View File

@ -65,7 +65,6 @@ extension DataSourceFacade {
status: MastodonStatus,
previewContext: AttachmentPreviewContext
) async throws {
let managedObjectContext = dependency.context.managedObjectContext
let status = status.reblog ?? status
let attachments = status.entity.mastodonAttachments

View File

@ -220,7 +220,6 @@ extension NotificationTableViewCellDelegate where Self: DataSourceProvider & Med
return
}
let managedObjectContext = self.context.managedObjectContext
let _mediaTransitionContext: NotificationMediaTransitionContext? = {
guard let status = record.status?.reblog ?? record.status else { return nil }
return NotificationMediaTransitionContext(

View File

@ -276,7 +276,6 @@ extension NotificationTimelineViewController: TableViewControllerNavigateable {
guard let indexPathForSelectedRow = tableView.indexPathForSelectedRow else { return }
guard let diffableDataSource = viewModel.diffableDataSource else { return }
guard let item = diffableDataSource.itemIdentifier(for: indexPathForSelectedRow) else { return }
let domain = authContext.mastodonAuthenticationBox.domain
Task { @MainActor in
switch item {

View File

@ -54,7 +54,6 @@ extension NotificationTimelineViewModel.LoadOldestState {
let scope = viewModel.scope
Task {
let managedObjectContext = viewModel.context.managedObjectContext
let _maxID: Mastodon.Entity.Notification.ID? = lastFeedRecord.notification?.id
guard let maxID = _maxID else {

View File

@ -69,7 +69,6 @@ extension SearchResultOverviewCoordinator: SearchResultsOverviewTableViewControl
)
let authContext = self.authContext
let managedObjectContext = context.managedObjectContext
Task {
let searchResult = try await context.apiService.search(

View File

@ -24,7 +24,6 @@ final class RemoteThreadViewModel: ThreadViewModel {
)
Task { @MainActor in
let domain = authContext.mastodonAuthenticationBox.domain
let response = try await context.apiService.status(
statusID: statusID,
authenticationBox: authContext.mastodonAuthenticationBox
@ -48,7 +47,6 @@ final class RemoteThreadViewModel: ThreadViewModel {
)
Task { @MainActor in
let domain = authContext.mastodonAuthenticationBox.domain
let response = try await context.apiService.notification(
notificationID: notificationID,
authenticationBox: authContext.mastodonAuthenticationBox

View File

@ -138,7 +138,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
switch (profile, statusID) {
case (profile, nil):
Task {
let domain = authContext.mastodonAuthenticationBox.domain
let authenticationBox = authContext.mastodonAuthenticationBox
guard let me = authenticationBox.authentication.account() else { return }
@ -285,7 +284,6 @@ extension SceneDelegate {
Task {
do {
let domain = authContext.mastodonAuthenticationBox.domain
let authenticationBox = authContext.mastodonAuthenticationBox
guard let me = authContext.mastodonAuthenticationBox.authentication.account() else { return }

View File

@ -27,7 +27,6 @@ extension APIService {
limit: Int? = nil,
authenticationBox: MastodonAuthenticationBox
) async throws -> Mastodon.Response.Content<[Mastodon.Entity.Account]> {
let managedObjectContext = backgroundManagedObjectContext
let response = try await Mastodon.API.Account.blocks(
session: session,
domain: authenticationBox.domain,

View File

@ -31,7 +31,6 @@ extension APIService {
limit: Int?,
authenticationBox: MastodonAuthenticationBox
) async throws -> Mastodon.Response.Content<[Mastodon.Entity.Account]> {
let managedObjectContext = backgroundManagedObjectContext
let response = try await Mastodon.API.Account.mutes(
session: session,
domain: authenticationBox.domain,