diff --git a/compiler/parse/src/state.rs b/compiler/parse/src/state.rs index 685dba35e8..faf0132655 100644 --- a/compiler/parse/src/state.rs +++ b/compiler/parse/src/state.rs @@ -1,5 +1,3 @@ -use crate::parser::Progress; -use bumpalo::Bump; use roc_region::all::{Position, Region}; use std::fmt; @@ -77,16 +75,6 @@ impl<'a> State<'a> { pub fn len_region(&self, length: u32) -> Region { Region::new(self.pos(), self.pos().bump_column(length)) } - - /// Return a failing ParseResult for the given FailReason - pub fn fail( - 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> {