mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-23 21:34:07 +00:00
remove unused functions
This commit is contained in:
parent
9265cf82b9
commit
f5d3845b14
2 changed files with 4 additions and 16 deletions
|
@ -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)>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue