summaryrefslogtreecommitdiffstats
path: root/src/timetype.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-11-19 14:12:50 +0100
committerMatthias Beyer <mail@beyermatthias.de>2017-11-19 15:05:00 +0100
commite12aaac56d7375515cb9c7c468d6d65dfa1ae76f (patch)
tree6de7c3641105f84c7d9710037f562acff9ddcaa9 /src/timetype.rs
parent22fd8afc01a914d70fc62b34ec9a39680a93a4e9 (diff)
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.
Diffstat (limited to 'src/timetype.rs')
-rw-r--r--src/timetype.rs8
1 files changed, 0 insertions, 8 deletions
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<TimeType> {
- 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<TimeType> {