From a48a27a3675e1b59c7730c5cd7773ce68379457b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 21 Nov 2022 14:52:45 -0800 Subject: [PATCH] Remove unused function --- src/parse/mod.rs | 1 - src/parse/utils.rs | 10 ---------- 2 files changed, 11 deletions(-) delete mode 100644 src/parse/utils.rs diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 7a940b8..6c342cb 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -20,7 +20,6 @@ pub mod command; pub mod imf; pub mod response; pub mod trace; -pub mod utils; pub fn base64(input: &[u8]) -> IResult<&[u8], &str> { let mut parser = map_res( diff --git a/src/parse/utils.rs b/src/parse/utils.rs deleted file mode 100644 index 99410e9..0000000 --- a/src/parse/utils.rs +++ /dev/null @@ -1,10 +0,0 @@ -use nom::{ - character::streaming::{line_ending, not_line_ending}, - IResult, -}; - -pub fn single_line(input: &[u8]) -> IResult<&[u8], String> { - let (rem, (line, _)) = nom::sequence::tuple((not_line_ending, line_ending))(input)?; - - Ok((rem, String::from_utf8(line.to_vec()).unwrap())) -}