Move private functions to private extension
This commit is contained in:
parent
9de3caf3a0
commit
8cb25e7c5e
|
@ -540,18 +540,6 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
||||||
refreshTimeline()
|
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 {
|
func isExpanded(_ node: Node) -> Bool {
|
||||||
if let containerID = (node.representedObject as? ContainerIdentifiable)?.containerID {
|
if let containerID = (node.representedObject as? ContainerIdentifiable)?.containerID {
|
||||||
return expandedTable.contains(containerID)
|
return expandedTable.contains(containerID)
|
||||||
|
@ -1256,6 +1244,18 @@ private extension SceneCoordinator {
|
||||||
self.showIcons = false
|
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
|
// MARK: Select Prev Unread
|
||||||
|
|
||||||
@discardableResult
|
@discardableResult
|
||||||
|
@ -1618,7 +1618,7 @@ private extension SceneCoordinator {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Double Split
|
// MARK: Three Panel Mode
|
||||||
|
|
||||||
func installTimelineControllerIfNecessary(animated: Bool) {
|
func installTimelineControllerIfNecessary(animated: Bool) {
|
||||||
if navControllerForTimeline().viewControllers.filter({ $0 is MasterTimelineViewController }).count < 1 {
|
if navControllerForTimeline().viewControllers.filter({ $0 is MasterTimelineViewController }).count < 1 {
|
||||||
|
|
Loading…
Reference in New Issue