diff options
Diffstat (limited to 'lib/std/fifo.zig')
| -rw-r--r-- | lib/std/fifo.zig | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/std/fifo.zig b/lib/std/fifo.zig index 788f8f1933..dfd932cb32 100644 --- a/lib/std/fifo.zig +++ b/lib/std/fifo.zig @@ -232,11 +232,6 @@ pub fn LinearFifo( return .{ .context = self }; } - /// Deprecated: `use reader` - pub fn inStream(self: *Self) std.io.InStream(*Self, error{}, readFn) { - return .{ .context = self }; - } - /// Returns number of items available in fifo pub fn writableLength(self: Self) usize { return self.buf.len - self.count; @@ -317,7 +312,7 @@ pub fn LinearFifo( } /// Same as `write` except it returns the number of bytes written, which is always the same - /// as `bytes.len`. The purpose of this function existing is to match `std.io.OutStream` API. + /// as `bytes.len`. The purpose of this function existing is to match `std.io.Writer` API. fn appendWrite(self: *Self, bytes: []const u8) error{OutOfMemory}!usize { try self.write(bytes); return bytes.len; @@ -327,11 +322,6 @@ pub fn LinearFifo( return .{ .context = self }; } - /// Deprecated: `use writer` - pub fn outStream(self: *Self) std.io.OutStream(*Self, error{OutOfMemory}, appendWrite) { - return .{ .context = self }; - } - /// Make `count` items available before the current read location fn rewind(self: *Self, count: usize) void { assert(self.writableLength() >= count); |
