Move private functions to private extension

This commit is contained in:
Maurice Parker 2019-11-26 17:32:30 -06:00
parent 9de3caf3a0
commit 8cb25e7c5e
1 changed files with 13 additions and 13 deletions

View File

@ -540,18 +540,6 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
refreshTimeline()
}
func markExpanded(_ node: Node) {
if let containerID = (node.representedObject as? ContainerIdentifiable)?.containerID {
expandedTable.insert(containerID)
}
}
func unmarkExpanded(_ node: Node) {
if let containerID = (node.representedObject as? ContainerIdentifiable)?.containerID {
expandedTable.remove(containerID)
}
}
func isExpanded(_ node: Node) -> Bool {
if let containerID = (node.representedObject as? ContainerIdentifiable)?.containerID {
return expandedTable.contains(containerID)
@ -1256,6 +1244,18 @@ private extension SceneCoordinator {
self.showIcons = false
}
func markExpanded(_ node: Node) {
if let containerID = (node.representedObject as? ContainerIdentifiable)?.containerID {
expandedTable.insert(containerID)
}
}
func unmarkExpanded(_ node: Node) {
if let containerID = (node.representedObject as? ContainerIdentifiable)?.containerID {
expandedTable.remove(containerID)
}
}
// MARK: Select Prev Unread
@discardableResult
@ -1618,7 +1618,7 @@ private extension SceneCoordinator {
}
// MARK: Double Split
// MARK: Three Panel Mode
func installTimelineControllerIfNecessary(animated: Bool) {
if navControllerForTimeline().viewControllers.filter({ $0 is MasterTimelineViewController }).count < 1 {