mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 18:56:14 +00:00
Remove some unused code.
This commit is contained in:
1 parent
1e822155b7
commit
ce90c7390f
2 files changed
+1
-24
No files matched your search
@@ -52,15 +52,6 @@ final class MainTimelineViewController: UIViewController, UndoableCommandRunner
|
||||
return coordinator?.currentArticle
|
||||
}
|
||||
|
||||
private var timelineMiddleIndexPath: IndexPath? {
|
||||
get {
|
||||
coordinator?.timelineMiddleIndexPath
|
||||
}
|
||||
set {
|
||||
coordinator?.timelineMiddleIndexPath = newValue
|
||||
}
|
||||
}
|
||||
|
||||
private var isTimelineViewControllerPending: Bool {
|
||||
get {
|
||||
coordinator?.isTimelineViewControllerPending ?? false
|
||||
@@ -175,7 +166,6 @@ final class MainTimelineViewController: UIViewController, UndoableCommandRunner
|
||||
private static let cellReloadDelay: TimeInterval = 0.1
|
||||
|
||||
// MARK: Constants
|
||||
private let scrollPositionQueue = CoalescingQueue(name: "Timeline Scroll Position", interval: 0.3, maxInterval: 1.0)
|
||||
private let updateQueue = CoalescingQueue(name: "Timeline Update Queue", interval: 0.5, maxInterval: 1.0)
|
||||
|
||||
// MARK: - IBOutlets
|
||||
@@ -208,12 +198,7 @@ final class MainTimelineViewController: UIViewController, UndoableCommandRunner
|
||||
configureToolbar()
|
||||
resetUI(resetScroll: true)
|
||||
|
||||
// Load the table and then scroll to the saved position if available
|
||||
applyChanges(animated: false) {
|
||||
if let restoreIndexPath = self.timelineMiddleIndexPath {
|
||||
self.collectionView?.scrollToItem(at: restoreIndexPath, at: .centeredVertically, animated: false)
|
||||
}
|
||||
}
|
||||
applyChanges(animated: false)
|
||||
|
||||
// Disable swipe back on iPad Mice
|
||||
guard let gesture = self.navigationController?.interactivePopGestureRecognizer as? UIPanGestureRecognizer else {
|
||||
@@ -1305,11 +1290,6 @@ private extension MainTimelineViewController {
|
||||
SingleLineUILabelSizer.emptyCache()
|
||||
}
|
||||
|
||||
@objc func scrollPositionDidChange() {
|
||||
Self.logger.debug("MainTimelineViewController: scrollPositionDidChange")
|
||||
timelineMiddleIndexPath = collectionView?.middleVisibleRow()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extension MainTimelineViewController: UISearchControllerDelegate {
|
||||
|
||||
Reference in new issue
Block a user