From 8cb25e7c5e5086f67df4652ed0aca70c7f2008e8 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 26 Nov 2019 17:32:30 -0600 Subject: [PATCH] Move private functions to private extension --- iOS/SceneCoordinator.swift | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 1ca436875..36299017f 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -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 {