From 7d2fb776b77e10e64f5fdbf8d36676f13f1832d0 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 25 Nov 2020 14:25:32 +0100 Subject: Drop no longer needed function. --- src/main.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index eb1e241..9b9c12f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -253,12 +253,6 @@ fn node_value<'a>(class: &str, data: &'a [u8]) -> IResult<&'a [u8], NodeValue<'a } } -fn nodetype<'a>(data: &'a [u8]) -> IResult<&'a [u8], NodeType> { - let (rest, nt) = be_u32(data)?; - - Ok((rest, NodeType::from(nt))) -} - fn fourcc<'a>(data: &'a [u8]) -> IResult<&'a [u8], &'a str> { let (rest, tag) = take(4usize)(data)?; Ok((rest, std::str::from_utf8(tag).unwrap())) -- cgit v1.2.3