mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: delete unused code
This commit is contained in:
parent
7fad8ab3dc
commit
085cc73ec5
@ -185,5 +185,5 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.2"
|
version: "2.1.2"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.17.3 <3.0.0"
|
dart: ">=2.17.0 <3.0.0"
|
||||||
flutter: ">=1.17.0"
|
flutter: ">=1.17.0"
|
||||||
|
@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
version: 1.0.0+1
|
version: 1.0.0+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.17.3 <3.0.0"
|
sdk: ">=2.17.0 <3.0.0"
|
||||||
|
|
||||||
# Dependencies specify other packages that your package needs in order to work.
|
# Dependencies specify other packages that your package needs in order to work.
|
||||||
# To automatically upgrade your package dependencies to the latest versions
|
# To automatically upgrade your package dependencies to the latest versions
|
||||||
|
@ -84,13 +84,6 @@ class Node extends ChangeNotifier with LinkedListEntry<Node> {
|
|||||||
return childAtIndex(path.first)?.childAtPath(path.sublist(1));
|
return childAtIndex(path.first)?.childAtPath(path.sublist(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
Node root() {
|
|
||||||
if (parent != null) {
|
|
||||||
return parent!.root();
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
Path path([Path previous = const []]) {
|
Path path([Path previous = const []]) {
|
||||||
if (parent == null) {
|
if (parent == null) {
|
||||||
return previous;
|
return previous;
|
||||||
|
@ -16,12 +16,6 @@ class StateTree {
|
|||||||
return StateTree(root: root);
|
return StateTree(root: root);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Path pathForNode(Node node) {
|
|
||||||
// var nodeRoot = node.root();
|
|
||||||
// assert(nodeRoot == root, "Every node's root must be same as root");
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
Node? nodeAtPath(Path path) {
|
Node? nodeAtPath(Path path) {
|
||||||
return root.childAtPath(path);
|
return root.childAtPath(path);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user