summaryrefslogtreecommitdiff
path: root/src/iter/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/iter/utils.rs')
-rw-r--r--src/iter/utils.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/iter/utils.rs b/src/iter/utils.rs
deleted file mode 100644
index a134d9a..0000000
--- a/src/iter/utils.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-pub fn pymod(a: isize, b: isize) -> isize {
- let r = a % b;
- // If r and b differ in sign, add b to wrap the result to the correct sign.
- if (r > 0 && b < 0) || (r < 0 && b > 0) {
- return r + b;
- }
- r
-}