Delete dead code
This commit is contained in:
parent
6ede5b7c3d
commit
f5dbe7117e
|
@ -43,10 +43,7 @@ class AddFeedController: AddFeedWindowControllerDelegate, FeedFinderDelegate {
|
||||||
func showAddFeedSheet(_ urlString: String?, _ name: String?, _ folder: Folder?) {
|
func showAddFeedSheet(_ urlString: String?, _ name: String?, _ folder: Folder?) {
|
||||||
|
|
||||||
let folderTreeControllerDelegate = FolderTreeControllerDelegate()
|
let folderTreeControllerDelegate = FolderTreeControllerDelegate()
|
||||||
|
let folderTreeController = TreeController(delegate: folderTreeControllerDelegate)
|
||||||
let rootNode = Node(representedObject: AccountManager.shared.defaultAccount, parent: nil)
|
|
||||||
rootNode.canHaveChildNodes = true
|
|
||||||
let folderTreeController = TreeController(delegate: folderTreeControllerDelegate, rootNode: rootNode)
|
|
||||||
|
|
||||||
addFeedWindowController = AddFeedWindowController(urlString: urlString ?? urlStringFromPasteboard, name: name, folder: folder, folderTreeController: folderTreeController, delegate: self)
|
addFeedWindowController = AddFeedWindowController(urlString: urlString ?? urlStringFromPasteboard, name: name, folder: folder, folderTreeController: folderTreeController, delegate: self)
|
||||||
addFeedWindowController!.runSheetOnWindow(hostWindow)
|
addFeedWindowController!.runSheetOnWindow(hostWindow)
|
||||||
|
|
|
@ -20,10 +20,7 @@ struct AddFeedFolderPickerData {
|
||||||
init() {
|
init() {
|
||||||
|
|
||||||
let treeControllerDelegate = FolderTreeControllerDelegate()
|
let treeControllerDelegate = FolderTreeControllerDelegate()
|
||||||
|
let treeController = TreeController(delegate: treeControllerDelegate)
|
||||||
let rootNode = Node(representedObject: AccountManager.shared.defaultAccount, parent: nil)
|
|
||||||
rootNode.canHaveChildNodes = true
|
|
||||||
let treeController = TreeController(delegate: treeControllerDelegate, rootNode: rootNode)
|
|
||||||
|
|
||||||
treeController.rootNode.childNodes.forEach { node in
|
treeController.rootNode.childNodes.forEach { node in
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue