File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed
frontend/app_flowy/packages/flowy_editor/lib/document Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,6 @@ class Node extends ChangeNotifier with LinkedListEntry<Node> {
84
84
return childAtIndex (path.first)? .childAtPath (path.sublist (1 ));
85
85
}
86
86
87
- Node root () {
88
- if (parent != null ) {
89
- return parent! .root ();
90
- }
91
- return this ;
92
- }
93
-
94
87
Path path ([Path previous = const []]) {
95
88
if (parent == null ) {
96
89
return previous;
Original file line number Diff line number Diff line change @@ -16,12 +16,6 @@ class StateTree {
16
16
return StateTree (root: root);
17
17
}
18
18
19
- // Path pathForNode(Node node) {
20
- // var nodeRoot = node.root();
21
- // assert(nodeRoot == root, "Every node's root must be same as root");
22
-
23
- // }
24
-
25
19
Node ? nodeAtPath (Path path) {
26
20
return root.childAtPath (path);
27
21
}
You can’t perform that action at this time.
0 commit comments