diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 4c9b8d82d..0b179eb10 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -435,13 +435,6 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { return expandedNodes.contains(node) } - func nodeFor(_ indexPath: IndexPath) -> Node? { - guard indexPath.section < shadowTable.count && indexPath.row < shadowTable[indexPath.section].count else { - return nil - } - return shadowTable[indexPath.section][indexPath.row] - } - func shadowNodesFor(section: Int) -> [Node] { return shadowTable[section] } @@ -453,22 +446,6 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { return indexPath } - func indexPathFor(_ node: Node) -> IndexPath? { - for i in 0.. IndexPath? { - guard let node = treeController.rootNode.descendantNodeRepresentingObject(object) else { - return nil - } - return indexPathFor(node) - } - func unreadCountFor(_ node: Node) -> Int { // The coordinator supplies the unread count for the currently selected feed node if let indexPath = currentFeedIndexPath, let selectedNode = nodeFor(indexPath), selectedNode == node { @@ -1072,6 +1049,29 @@ private extension SceneCoordinator { } } + func nodeFor(_ indexPath: IndexPath) -> Node? { + guard indexPath.section < shadowTable.count && indexPath.row < shadowTable[indexPath.section].count else { + return nil + } + return shadowTable[indexPath.section][indexPath.row] + } + + func indexPathFor(_ node: Node) -> IndexPath? { + for i in 0.. IndexPath? { + guard let node = treeController.rootNode.descendantNodeRepresentingObject(object) else { + return nil + } + return indexPathFor(node) + } + func updateShowAvatars() { if showFeedNames {