Simplify Container and its function implementations.

This commit is contained in:
Brent Simmons
2017-10-07 21:41:21 -07:00
parent dccb215c76
commit ca611623aa
16 changed files with 202 additions and 378 deletions

View File

@@ -29,12 +29,11 @@ private extension FolderTreeControllerDelegate {
var folderNodes = [Node]()
let _ = AccountManager.shared.localAccount.visitChildren { (oneRepresentedObject) in
for oneRepresentedObject in AccountManager.shared.localAccount.children {
if let folder = oneRepresentedObject as? Folder {
folderNodes += [createNode(folder, parent: node)]
}
return false
}
return Node.nodesSortedAlphabetically(folderNodes)