diff --git a/src/parser/util.rs b/src/parser/util.rs index 8d4ce02..5770de4 100644 --- a/src/parser/util.rs +++ b/src/parser/util.rs @@ -1,5 +1,4 @@ use nom::branch::alt; -use nom::bytes::complete::is_a; use nom::character::complete::anychar; use nom::character::complete::line_ending; use nom::character::complete::none_of; @@ -230,13 +229,6 @@ where } } -/// Match at least one space character. -/// -/// This is similar to nom's space1 parser except space1 matches both spaces and tabs whereas this only matches spaces. -pub(crate) fn only_space1<'s>(input: OrgSource<'s>) -> Res, OrgSource<'s>> { - is_a(" ")(input) -} - /// Match single space or tab. /// /// In org-mode syntax, spaces and tabs are often (but not always!) interchangeable.