From 53fc991abde044054991d3fed405cb6733572941 Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Sun, 4 Jun 2023 23:56:47 +0600 Subject: [PATCH] std.fmt.formatValue: remove `B` and `Bi` specifiers (deprecated in 0.8) Followup to 72664df4911f5d5bddead48acde6275f1d5f2a5e. Signed-off-by: Eric Joldasov --- lib/std/fmt.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index 8c4d430663..ff8ce1c5f2 100644 --- a/lib/std/fmt.zig +++ b/lib/std/fmt.zig @@ -727,12 +727,6 @@ fn formatValue( options: FormatOptions, writer: anytype, ) !void { - if (comptime std.mem.eql(u8, fmt, "B")) { - @compileError("specifier 'B' has been deprecated, wrap your argument in std.fmt.fmtIntSizeDec instead"); - } else if (comptime std.mem.eql(u8, fmt, "Bi")) { - @compileError("specifier 'Bi' has been deprecated, wrap your argument in std.fmt.fmtIntSizeBin instead"); - } - const T = @TypeOf(value); switch (@typeInfo(T)) { .Float, .ComptimeFloat => return formatFloatValue(value, fmt, options, writer),