std.fifo.LinearFifo: remove ensureCapacity (deprecated in 0.9)

Followup to 902df103c6.
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
Eric Joldasov 2023-06-04 23:53:27 +06:00
parent b0ad1c86da
commit c46e5eb3e1
No known key found for this signature in database
GPG Key ID: 5C9C69060686B588

View File

@ -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;