Skip to content

Commit

Permalink
chore: delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Jul 13, 2022
1 parent 7fad8ab commit 085cc73
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,5 @@ packages:
source: hosted
version: "2.1.2"
sdks:
dart: ">=2.17.3 <3.0.0"
dart: ">=2.17.0 <3.0.0"
flutter: ">=1.17.0"
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

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.
# To automatically upgrade your package dependencies to the latest versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@ class Node extends ChangeNotifier with LinkedListEntry<Node> {
return childAtIndex(path.first)?.childAtPath(path.sublist(1));
}

Node root() {
if (parent != null) {
return parent!.root();
}
return this;
}

Path path([Path previous = const []]) {
if (parent == null) {
return previous;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ class StateTree {
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) {
return root.childAtPath(path);
}
Expand Down

0 comments on commit 085cc73

Please sign in to comment.