Remove dead code (IOS-235)

This commit is contained in:
Nathan Mattes 2024-03-27 15:38:26 +01:00
parent 344385f5ef
commit 4eed7df729
2 changed files with 1 additions and 8 deletions

View File

@ -28,11 +28,6 @@ extension HomeTimelineViewModel {
self.viewModel = viewModel
}
override func didEnter(from previousState: GKState?) {
super.didEnter(from: previousState)
viewModel?.loadLatestStateMachinePublisher.send(self)
}
@MainActor
func enter(state: LoadLatestState.Type) {
stateMachine?.enter(state)

View File

@ -59,7 +59,6 @@ final class HomeTimelineViewModel: NSObject {
stateMachine.enter(LoadLatestState.Initial.self)
return stateMachine
}()
lazy var loadLatestStateMachinePublisher = CurrentValueSubject<LoadLatestState?, Never>(nil)
// bottom loader
private(set) lazy var loadOldestStateMachine: GKStateMachine = {
@ -74,10 +73,9 @@ final class HomeTimelineViewModel: NSObject {
stateMachine.enter(LoadOldestState.Initial.self)
return stateMachine
}()
lazy var loadOldestStateMachinePublisher = CurrentValueSubject<LoadOldestState?, Never>(nil)
var cellFrameCache = NSCache<NSNumber, NSValue>()
init(context: AppContext, authContext: AuthContext) {
self.context = context
self.authContext = authContext