diff --git a/src/protocol/input_source.rs b/src/protocol/input_source.rs index 0c26d2f4f8e291ffc1998c2eb5f6dae7ede85787..e730f9ba3c38c91210d6eeea67924c7498124a88 100644 --- a/src/protocol/input_source.rs +++ b/src/protocol/input_source.rs @@ -446,24 +446,11 @@ impl ParseError { )) } } - pub fn with_at_pos(mut self, error_type: StatementKind, source: &InputSource, position: InputPosition, message: String) -> Self { - self.statements.push(ErrorStatement::from_source_at_pos(error_type, source, position, message)); - self - } - pub fn with_at_span(mut self, error_type: StatementKind, source: &InputSource, span: InputSpan, message: String) -> Self { self.statements.push(ErrorStatement::from_source_at_span(error_type, source, span, message.to_string())); self } - pub fn with_info_at_pos(self, source: &InputSource, position: InputPosition, msg: String) -> Self { - self.with_at_pos(StatementKind::Info, source, position, msg) - } - - pub fn with_info_str_at_pos(self, source: &InputSource, position: InputPosition, msg: &str) -> Self { - self.with_at_pos(StatementKind::Info, source, position, msg.to_string()) - } - pub fn with_info_at_span(self, source: &InputSource, span: InputSpan, msg: String) -> Self { self.with_at_span(StatementKind::Info, source, span, msg) }