Remove dead code (IOS-235)
This commit is contained in:
parent
344385f5ef
commit
4eed7df729
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue