Commit c46e5eb3e1

Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-04 19:53:27
std.fifo.LinearFifo: remove `ensureCapacity` (deprecated in 0.9)
Followup to 902df103c6151c257c90de9ba5f29f7f4b9dbea2. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
1 parent b0ad1c8
Changed files (1)
lib
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;