From 97bfdabe0c48399d683caf70e82d32f32db66a5e Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Thu, 4 Jan 2024 16:21:58 +0100 Subject: [PATCH] Remove unused property --- Mastodon/Scene/Thread/MastodonStatusThreadViewModel.swift | 2 -- Mastodon/Scene/Thread/ThreadViewModel+LoadThreadState.swift | 2 -- Mastodon/Scene/Thread/ThreadViewModel.swift | 2 -- 3 files changed, 6 deletions(-) diff --git a/Mastodon/Scene/Thread/MastodonStatusThreadViewModel.swift b/Mastodon/Scene/Thread/MastodonStatusThreadViewModel.swift index 9e6018ccd..34151e4a6 100644 --- a/Mastodon/Scene/Thread/MastodonStatusThreadViewModel.swift +++ b/Mastodon/Scene/Thread/MastodonStatusThreadViewModel.swift @@ -77,7 +77,6 @@ final class MastodonStatusThreadViewModel { extension MastodonStatusThreadViewModel { func appendAncestor( - domain: String, nodes: [Node] ) { var newItems: [StatusItem] = [] @@ -91,7 +90,6 @@ extension MastodonStatusThreadViewModel { } func appendDescendant( - domain: String, nodes: [Node] ) { diff --git a/Mastodon/Scene/Thread/ThreadViewModel+LoadThreadState.swift b/Mastodon/Scene/Thread/ThreadViewModel+LoadThreadState.swift index 807f7575d..efd812ac4 100644 --- a/Mastodon/Scene/Thread/ThreadViewModel+LoadThreadState.swift +++ b/Mastodon/Scene/Thread/ThreadViewModel+LoadThreadState.swift @@ -74,7 +74,6 @@ extension ThreadViewModel.LoadThreadState { authenticationBox: viewModel.authContext.mastodonAuthenticationBox) viewModel.mastodonStatusThreadViewModel.appendAncestor( - domain: threadContext.domain, nodes: MastodonStatusThreadViewModel.Node.replyToThread( for: threadContext.replyToID, from: response.value.ancestors @@ -82,7 +81,6 @@ extension ThreadViewModel.LoadThreadState { ) viewModel.mastodonStatusThreadViewModel.appendDescendant( - domain: threadContext.domain, nodes: response.value.descendants.map { status in return .init(status: .fromEntity(status), children: []) } diff --git a/Mastodon/Scene/Thread/ThreadViewModel.swift b/Mastodon/Scene/Thread/ThreadViewModel.swift index a6957049e..2e6e69426 100644 --- a/Mastodon/Scene/Thread/ThreadViewModel.swift +++ b/Mastodon/Scene/Thread/ThreadViewModel.swift @@ -68,7 +68,6 @@ class ThreadViewModel { // bind threadContext self.threadContext = .init( - domain: authContext.mastodonAuthenticationBox.domain, //status.domain, statusID: status.id, replyToID: status.entity.inReplyToID ) @@ -111,7 +110,6 @@ class ThreadViewModel { extension ThreadViewModel { struct ThreadContext { - let domain: String let statusID: Mastodon.Entity.Status.ID let replyToID: Mastodon.Entity.Status.ID? }