Skip to content

Commit

Permalink
Remove an unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
kishikawakatsumi committed Jul 20, 2024
1 parent 4607152 commit a3b700b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Examples/macOS/FileBrowser/FileBrowser/Tree.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ struct Tree {
func parent(of node: Node) -> Node? {
return nodes.first { $0.id == node.parent }
}

func subtree(from node: Node) -> Tree {
var subtree = Tree()
let children = children(of: node)
subtree.nodes = children.map { $0.detach() }
return subtree
}
}

class Node {
Expand Down

0 comments on commit a3b700b

Please sign in to comment.