From 9828d9c643221fe40ae717dd47891c37786fac76 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 6 Nov 2023 23:20:59 -0500 Subject: [PATCH] Clean up --- src/abstract_tree/expression.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/abstract_tree/expression.rs b/src/abstract_tree/expression.rs index a9e10ae..59575e6 100644 --- a/src/abstract_tree/expression.rs +++ b/src/abstract_tree/expression.rs @@ -12,7 +12,6 @@ use super::{function_call::FunctionCall, logic::Logic, math::Math}; pub enum Expression { Value(ValueNode), Identifier(Identifier), - Sublist(Box), Index(Box), Math(Box), Logic(Box), @@ -31,9 +30,6 @@ impl AbstractTree for Expression { "identifier" => { Expression::Identifier(Identifier::from_syntax_node(source, child)?) } - "sublist" => { - Expression::Sublist(Box::new(Sublist::from_syntax_node(source, child)?)) - } "index" => Expression::Index(Box::new(Index::from_syntax_node(source, child)?)), "math" => Expression::Math(Box::new(Math::from_syntax_node(source, child)?)), "logic" => Expression::Logic(Box::new(Logic::from_syntax_node(source, child)?)), @@ -63,7 +59,6 @@ impl AbstractTree for Expression { match self { Expression::Value(value_node) => value_node.run(source, context), Expression::Identifier(identifier) => identifier.run(source, context), - Expression::Sublist(sublist) => sublist.run(source, context), Expression::Math(math) => math.run(source, context), Expression::Logic(logic) => logic.run(source, context), Expression::FunctionCall(function_call) => function_call.run(source, context),