Remove unused property
This commit is contained in:
parent
c1ad3e2a9c
commit
97bfdabe0c
@ -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]
|
||||
) {
|
||||
|
||||
|
@ -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: [])
|
||||
}
|
||||
|
@ -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?
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user