aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/context/parsed_command_node.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-17 14:02:13 -0500
committermat <github@matdoes.dev>2022-04-17 14:02:13 -0500
commita72a47ced76065caf739898954cd18edbc39174b (patch)
tree5526c7663f253bbd7c8318b9d98413f1f2074852 /azalea-brigadier/src/context/parsed_command_node.rs
parent4ff67d4917ce333232189e86aee09f2d82451fc6 (diff)
downloadazalea-drasl-a72a47ced76065caf739898954cd18edbc39174b.tar.xz
Rewrite brigadier
Diffstat (limited to 'azalea-brigadier/src/context/parsed_command_node.rs')
-rw-r--r--azalea-brigadier/src/context/parsed_command_node.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/azalea-brigadier/src/context/parsed_command_node.rs b/azalea-brigadier/src/context/parsed_command_node.rs
deleted file mode 100644
index 21d1b2e9..00000000
--- a/azalea-brigadier/src/context/parsed_command_node.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-use super::string_range::StringRange;
-use crate::tree::command_node::CommandNodeTrait;
-
-pub struct ParsedCommandNode<S> {
- node: Box<dyn CommandNodeTrait<S>>,
- range: StringRange,
-}
-
-impl<S> ParsedCommandNode<S> {
- fn new(node: dyn CommandNodeTrait<S>, range: StringRange) -> Self {
- Self { node, range }
- }
-
- fn node(&self) -> &dyn CommandNodeTrait<S> {
- &self.node
- }
-
- fn range(&self) -> &StringRange {
- &self.range
- }
-}
-
-impl<S> Clone for ParsedCommandNode<S> {
- fn clone_from(&mut self, source: &Self) {
- Self {
- node: self.node.clone(),
- range: self.range.clone(),
- }
- }
-}