From c46e5eb3e1a26a0fb86a1603243497510f723f9b Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Sun, 4 Jun 2023 23:53:27 +0600 Subject: [PATCH] std.fifo.LinearFifo: remove `ensureCapacity` (deprecated in 0.9) Followup to 902df103c6151c257c90de9ba5f29f7f4b9dbea2. Signed-off-by: Eric Joldasov --- lib/std/fifo.zig | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/std/fifo.zig b/lib/std/fifo.zig index 0861e19d14..bc88e61d76 100644 --- a/lib/std/fifo.zig +++ b/lib/std/fifo.zig @@ -117,8 +117,6 @@ pub fn LinearFifo( } } - pub const ensureCapacity = @compileError("deprecated; call `ensureUnusedCapacity` or `ensureTotalCapacity`"); - /// Ensure that the buffer can fit at least `size` items pub fn ensureTotalCapacity(self: *Self, size: usize) !void { if (self.buf.len >= size) return;