Skip to content

Commit 868c110

Browse files
committed
chore: delete unused code
1 parent 7fad8ab commit 868c110

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

frontend/app_flowy/packages/flowy_editor/lib/document/node.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ class Node extends ChangeNotifier with LinkedListEntry<Node> {
8484
return childAtIndex(path.first)?.childAtPath(path.sublist(1));
8585
}
8686

87-
Node root() {
88-
if (parent != null) {
89-
return parent!.root();
90-
}
91-
return this;
92-
}
93-
9487
Path path([Path previous = const []]) {
9588
if (parent == null) {
9689
return previous;

frontend/app_flowy/packages/flowy_editor/lib/document/state_tree.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ class StateTree {
1616
return StateTree(root: root);
1717
}
1818

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-
2519
Node? nodeAtPath(Path path) {
2620
return root.childAtPath(path);
2721
}

0 commit comments

Comments
 (0)