summaryrefslogtreecommitdiffstats
path: root/src/iter.rs
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-11-25 01:16:18 -0500
committerMalfurious <m@lfurio.us>2021-11-25 01:16:18 -0500
commit30686a8e693f2d61bda933d1370b6ea50b8bf0a6 (patch)
tree91f3ed277465f1a7426acea31c7074faf1d1a32f /src/iter.rs
parent16ac36edf6250e1b8f414adec0fccccf5770c247 (diff)
downloadSorensenCompression-30686a8e693f2d61bda933d1370b6ea50b8bf0a6.tar.gz
SorensenCompression-30686a8e693f2d61bda933d1370b6ea50b8bf0a6.zip
Remove redundant rust code
This logic has already been reimplemented in C, or is otherwise unneeded. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
-rw-r--r--src/iter.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/iter.rs b/src/iter.rs
deleted file mode 100644
index f8aa6cb..0000000
--- a/src/iter.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-use num::BigInt;
-
-pub fn next(v: &BigInt) -> BigInt
-{
- /*let t: BigUint = v | (v - 1);
- (t + 1) | (((!t & -!t) - 1) >> (v.trailing_zeros() + 1))*/
-
- let t: BigInt = (v | (v - 1u32)) + 1u32;
- &t | ((((&t & -&t) / (v & -v)) >> 1) - 1u32)
-}