remove unused functions

This commit is contained in:
Folkert 2021-03-12 01:15:44 +01:00
parent 9265cf82b9
commit f5d3845b14
2 changed files with 4 additions and 16 deletions

View file

@ -103,19 +103,10 @@ impl<'a> State<'a> {
}
}
pub fn advance_spaces(
&self,
arena: &'a Bump,
spaces: usize,
) -> Result<Self, (Progress, SyntaxError<'a>, Self)> {
self.advance_spaces_e(arena, spaces, |line, _| SyntaxError::LineTooLong(line))
}
/// Advance the parser while also indenting as appropriate.
/// This assumes we are only advancing with spaces, since they can indent.
pub fn advance_spaces_e<TE, E>(
&self,
arena: &'a Bump,
spaces: usize,
to_error: TE,
) -> Result<Self, (Progress, E, Self)>