From 6ecf6779e5571d009f7bddbcf40abbb693c5efe5 Mon Sep 17 00:00:00 2001 From: kayomn Date: Tue, 11 Oct 2022 01:14:47 +0100 Subject: [PATCH] Remove unused math module logic --- src/math.zig | 6 ------ src/sys.zig | 1 - 2 files changed, 7 deletions(-) delete mode 100644 src/math.zig diff --git a/src/math.zig b/src/math.zig deleted file mode 100644 index 66c8cc9..0000000 --- a/src/math.zig +++ /dev/null @@ -1,6 +0,0 @@ -/// -/// Rounds the `Number` `value` up to the nearest `multiple`. -/// -pub fn roundUp(comptime Number: type, value: Number, multiple: Number) Number { - return value + @mod(@mod(multiple - value, multiple), multiple); -} diff --git a/src/sys.zig b/src/sys.zig index fa7b1a3..6d6fb4f 100644 --- a/src/sys.zig +++ b/src/sys.zig @@ -3,7 +3,6 @@ const ext = @cImport({ }); const io = @import("./io.zig"); -const math = @import("./math.zig"); const mem = @import("./mem.zig"); const meta = @import("./meta.zig"); const oar = @import("./oar.zig");