summaryrefslogtreecommitdiffstats
path: root/grep-searcher
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-02-10 07:38:33 -0500
committerAndrew Gallant <jamslam@gmail.com>2019-02-10 07:40:32 -0500
commit626ed00c196d54411ed2793b1568b1c48ccc95a0 (patch)
tree9205c05d51252a2d28cb7906c671cc23f4215ba9 /grep-searcher
parent332ad1840130f8696343c115c8fad2c808da16b5 (diff)
searcher: revert big-endian patch
This undoes the patch to stop using bytecount on big-endian architectures. In particular, we bump our bytecount dependency to the latest release, which has a fix. This reverts commit a4868b88351318182eed3b801d0c97a106a7d38f. Fixes #1144 (again), Closes #1194
Diffstat (limited to 'grep-searcher')
-rw-r--r--grep-searcher/src/lines.rs7
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)]