chore(specctra-core): remove unused stuff

This commit is contained in:
Alain Emilia Anna Zscheile 2024-12-06 16:40:57 +01:00 committed by mikolaj
parent 7737aaf0cc
commit 3e7526bcc6
2 changed files with 0 additions and 6 deletions

View File

@ -1,5 +1,3 @@
use crate::error::ParseError;
pub enum ListToken { pub enum ListToken {
Start { name: String }, Start { name: String },
Leaf { value: String }, Leaf { value: String },

View File

@ -141,10 +141,6 @@ impl<R: std::io::BufRead> ListTokenizer<R> {
} }
} }
fn map_context<T>(&self, result: Result<T, ParseError>) -> Result<T, ParseErrorContext> {
result.map_err(|err| self.add_context(err))
}
fn next_char(&mut self) -> Result<char, ParseErrorContext> { fn next_char(&mut self) -> Result<char, ParseErrorContext> {
let return_chr = self.peek_char()?; let return_chr = self.peek_char()?;
self.reset_char(); self.reset_char();