From e12aaac56d7375515cb9c7c468d6d65dfa1ae76f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 19 Nov 2017 14:12:50 +0100 Subject: Split parser into modules The TimeType::parse() function was removed because we don't want that there. It is not that nice, because the interface would return either a TimeType or an Iterator. --- src/timetype.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/timetype.rs') diff --git a/src/timetype.rs b/src/timetype.rs index 8b7cf26..6725edd 100644 --- a/src/timetype.rs +++ b/src/timetype.rs @@ -436,14 +436,6 @@ impl TimeType { do_calculate(self) } - pub fn parse(s: &str) -> Result { - use parser; - match parser::timetype(s.as_bytes()) { - ::nom::IResult::Done(_, o) => Ok(o.into()), - ::nom::IResult::Error(e) => Err(KE::from(e)), - ::nom::IResult::Incomplete(_) => Err(KEK::UnknownParserError.into()), - } - } } fn do_calculate(tt: TimeType) -> Result { -- cgit v1.2.3