diff --git a/src/parse/error.rs b/src/parse/error.rs index 8547521..60538e0 100644 --- a/src/parse/error.rs +++ b/src/parse/error.rs @@ -28,7 +28,6 @@ pub enum Kind UnexpectedToken, EmptyInput, ExpectedLogicalConnectiveArgument(String), - ExpectedComparisonArgument(String), MultipleComparisonOperators(crate::ComparisonOperator, crate::ComparisonOperator), } @@ -102,12 +101,6 @@ impl Error Self::new(Kind::ExpectedLogicalConnectiveArgument(logical_connective_name), location) } - pub(crate) fn new_comparison_argument(comparison_operator_name: String, location: Location) - -> Self - { - Self::new(Kind::ExpectedComparisonArgument(comparison_operator_name), location) - } - pub(crate) fn new_multiple_comparison_operators( comparison_operator_1: crate::ComparisonOperator, comparison_operator_2: crate::ComparisonOperator, location: Location) @@ -147,9 +140,6 @@ impl std::fmt::Debug for Error Kind::ExpectedLogicalConnectiveArgument(ref logical_connective_name) => write!(formatter, "this “{}” logical connective is missing an argument", logical_connective_name)?, - Kind::ExpectedComparisonArgument(ref comparison_operator_name) => - write!(formatter, "this “{}” comparison is missing an argument", - comparison_operator_name)?, Kind::MultipleComparisonOperators(comparison_operator_1, comparison_operator_2) => write!(formatter, "chained comparisons aren’t supported (found “{:?}” and “{:?}” in the same formula), consider separating them with “and”", comparison_operator_1, comparison_operator_2)?,