Delete dead code

This commit is contained in:
Maurice Parker 2019-05-01 14:56:26 -05:00
parent 6ede5b7c3d
commit f5dbe7117e
2 changed files with 2 additions and 8 deletions

View File

@ -43,10 +43,7 @@ class AddFeedController: AddFeedWindowControllerDelegate, FeedFinderDelegate {
func showAddFeedSheet(_ urlString: String?, _ name: String?, _ folder: Folder?) {
let folderTreeControllerDelegate = FolderTreeControllerDelegate()
let rootNode = Node(representedObject: AccountManager.shared.defaultAccount, parent: nil)
rootNode.canHaveChildNodes = true
let folderTreeController = TreeController(delegate: folderTreeControllerDelegate, rootNode: rootNode)
let folderTreeController = TreeController(delegate: folderTreeControllerDelegate)
addFeedWindowController = AddFeedWindowController(urlString: urlString ?? urlStringFromPasteboard, name: name, folder: folder, folderTreeController: folderTreeController, delegate: self)
addFeedWindowController!.runSheetOnWindow(hostWindow)

View File

@ -20,10 +20,7 @@ struct AddFeedFolderPickerData {
init() {
let treeControllerDelegate = FolderTreeControllerDelegate()
let rootNode = Node(representedObject: AccountManager.shared.defaultAccount, parent: nil)
rootNode.canHaveChildNodes = true
let treeController = TreeController(delegate: treeControllerDelegate, rootNode: rootNode)
let treeController = TreeController(delegate: treeControllerDelegate)
treeController.rootNode.childNodes.forEach { node in