From 6bd8d9efd75db55de6ea6551658331b3fedbeddf Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Thu, 5 Oct 2023 03:59:24 -0400 Subject: [PATCH] Cleanup. --- src/parser/util.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/parser/util.rs b/src/parser/util.rs index 8d4ce020..5770de4b 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.