aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-09-15 19:40:04 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-09-16 14:46:53 -0400
commitd3d24874c91054a70c706fed47278c81c9ce890a (patch)
tree6ee731cf3c9acaac8292bd2701cafc6dee9e0d4d /lib/std/math.zig
parent7b32aacbafda2946c67ff4d4b329cdededf1da29 (diff)
downloadzig-d3d24874c91054a70c706fed47278c81c9ce890a.tar.gz
zig-d3d24874c91054a70c706fed47278c81c9ce890a.zip
std: remove deprecated API for the upcoming release
See #3811
Diffstat (limited to 'lib/std/math.zig')
-rw-r--r--lib/std/math.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig
index f519979349..213a6145f8 100644
--- a/lib/std/math.zig
+++ b/lib/std/math.zig
@@ -170,13 +170,6 @@ pub fn approxEqRel(comptime T: type, x: T, y: T, tolerance: T) bool {
return @fabs(x - y) <= max(@fabs(x), @fabs(y)) * tolerance;
}
-pub fn approxEq(comptime T: type, x: T, y: T, tolerance: T) bool {
- _ = x;
- _ = y;
- _ = tolerance;
- @compileError("deprecated; use `approxEqAbs` or `approxEqRel`");
-}
-
test "approxEqAbs and approxEqRel" {
inline for ([_]type{ f16, f32, f64, f128 }) |T| {
const eps_value = comptime floatEps(T);