1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-31 17:45:17 +01:00

Remove dead code (IOS-272)

This commit is contained in:
Nathan Mattes 2024-05-24 13:33:37 +02:00
parent 93b4b04ac2
commit fe8e0dfdcd

View File

@ -192,18 +192,7 @@ extension HomeTimelineViewController {
statusTableViewCellDelegate: self,
timelineMiddleLoaderTableViewCellDelegate: self
)
// setup batch fetch
viewModel?.listBatchFetchViewModel.setup(scrollView: tableView)
viewModel?.listBatchFetchViewModel.shouldFetch
.receive(on: DispatchQueue.main)
.sink { [weak self] _ in
guard let self = self else { return }
guard self.view.window != nil else { return }
self.viewModel?.loadOldestStateMachine.enter(HomeTimelineViewModel.LoadOldestState.Loading.self)
}
.store(in: &disposeBag)
// bind refresh control
viewModel?.didLoadLatest
.receive(on: DispatchQueue.main)