summaryrefslogtreecommitdiffstats
path: root/src/timetype.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-11-19 15:11:44 +0100
committerGitHub <noreply@github.com>2017-11-19 15:11:44 +0100
commit633e1a707da7bc93191c7dfd8090a5ed91a19607 (patch)
tree4a23694727212d2cac0f1cf7c084129a75f7f27d /src/timetype.rs
parent22fd8afc01a914d70fc62b34ec9a39680a93a4e9 (diff)
parent95e07f51a2cc3e04f356d15497da7278d75523fd (diff)
Merge pull request #7 from matthiasbeyer/parser-interface
Parser interface
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> {