Restrict access to rebuildShadowTable function

This commit is contained in:
Maurice Parker 2019-08-31 11:38:03 -05:00
parent 2cf6550226
commit 061dfe931b
1 changed files with 22 additions and 25 deletions

View File

@ -324,31 +324,6 @@ class AppCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
return shadowTable[section].count
}
func rebuildShadowTable() {
shadowTable = [[Node]]()
for i in 0..<treeController.rootNode.numberOfChildNodes {
var result = [Node]()
if let nodes = treeController.rootNode.childAtIndex(i)?.childNodes {
for node in nodes {
result.append(node)
if expandedNodes.contains(node) {
for child in node.childNodes {
result.append(child)
}
}
}
}
shadowTable.append(result)
}
}
func isExpanded(_ node: Node) -> Bool {
return expandedNodes.contains(node)
}
@ -761,6 +736,28 @@ private extension AppCoordinator {
}
}
func rebuildShadowTable() {
shadowTable = [[Node]]()
for i in 0..<treeController.rootNode.numberOfChildNodes {
var result = [Node]()
if let nodes = treeController.rootNode.childAtIndex(i)?.childNodes {
for node in nodes {
result.append(node)
if expandedNodes.contains(node) {
for child in node.childNodes {
result.append(child)
}
}
}
}
shadowTable.append(result)
}
}
func updateShowAvatars() {
if showFeedNames {