diff options
Diffstat (limited to 'grep-searcher/src/lines.rs')
-rw-r--r-- | grep-searcher/src/lines.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/grep-searcher/src/lines.rs b/grep-searcher/src/lines.rs index 9393234c..ed225a42 100644 --- a/grep-searcher/src/lines.rs +++ b/grep-searcher/src/lines.rs @@ -109,17 +109,10 @@ impl LineStep { } /// Count the number of occurrences of `line_term` in `bytes`. -#[cfg(target_endian = "little")] pub fn count(bytes: &[u8], line_term: u8) -> u64 { bytecount::count(bytes, line_term) as u64 } -/// Count the number of occurrences of `line_term` in `bytes`. -#[cfg(target_endian = "big")] -pub fn count(bytes: &[u8], line_term: u8) -> u64 { - bytecount::naive_count(bytes, line_term) as u64 -} - /// Given a line that possibly ends with a terminator, return that line without /// the terminator. #[inline(always)] |