diff --git a/src/parse/tx.rs b/src/parse/tx.rs index 5ebb43c0..86b6bdc5 100644 --- a/src/parse/tx.rs +++ b/src/parse/tx.rs @@ -11,15 +11,11 @@ use crate::data::value::DataValue; use crate::parse::expr::{build_expr, parse_string}; use crate::parse::{Pair, Pairs, Rule}; - #[repr(u8)] #[derive(Debug, Eq, PartialEq, Copy, Clone)] pub(crate) enum TxAction { Put, Retract, - // RetractAllEA, - // RetractAllE, - // Ensure, } impl Display for TxAction { @@ -28,7 +24,6 @@ impl Display for TxAction { } } - #[derive(Debug, Clone)] pub(crate) enum EntityRep { Id(EntityId), @@ -116,7 +111,6 @@ fn parse_tx_clause( let identifier = identifier.unwrap_or_else(|| { *temp_id_serial += 1; EntityRep::SysTempId(*temp_id_serial) - }); let mut coll = vec![]; for (attr, val) in entities { @@ -187,17 +181,3 @@ fn parse_tx_pair( _ => unreachable!(), }) } -// -// fn parse_tx_el(src: Pair<'_>) -> Result { -// match src.as_rule() { -// Rule::tx_map => parse_tx_map(src), -// Rule::tx_list => parse_tx_list(src), -// Rule::expr => build_expr::(src), -// Rule::neg_num => Ok(JsonValue::from_str(src.as_str()).into_diagnostic()?), -// _ => unreachable!(), -// } -// } -// -// fn parse_tx_list(src: Pair<'_>) -> Result { -// src.into_inner().map(parse_tx_el).try_collect() -// }