mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Remove unused State::fail method
This commit is contained in:
parent
352c7979eb
commit
d9cfa2b2a5
1 changed files with 0 additions and 12 deletions
|
@ -1,5 +1,3 @@
|
||||||
use crate::parser::Progress;
|
|
||||||
use bumpalo::Bump;
|
|
||||||
use roc_region::all::{Position, Region};
|
use roc_region::all::{Position, Region};
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
|
@ -77,16 +75,6 @@ impl<'a> State<'a> {
|
||||||
pub fn len_region(&self, length: u32) -> Region {
|
pub fn len_region(&self, length: u32) -> Region {
|
||||||
Region::new(self.pos(), self.pos().bump_column(length))
|
Region::new(self.pos(), self.pos().bump_column(length))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return a failing ParseResult for the given FailReason
|
|
||||||
pub fn fail<T, X>(
|
|
||||||
self,
|
|
||||||
_arena: &'a Bump,
|
|
||||||
progress: Progress,
|
|
||||||
reason: X,
|
|
||||||
) -> Result<(Progress, T, Self), (Progress, X, Self)> {
|
|
||||||
Err((progress, reason, self))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> fmt::Debug for State<'a> {
|
impl<'a> fmt::Debug for State<'a> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue