aboutsummaryrefslogtreecommitdiff
path: root/lib/std/fifo.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-01-09 13:04:08 -0800
committerGitHub <noreply@github.com>2021-01-09 13:04:08 -0800
commit29928af6005997d2b02b4c3a3576a696a02fa269 (patch)
tree9852e606adc5bc065e758482445bb6d1c5ead99c /lib/std/fifo.zig
parenta0ad2dee6a0b3bb7fd04032f6113206f7b4e73eb (diff)
parente72472d953f5e91d37bc5f1bf1ec7b6fb5b1afe2 (diff)
downloadzig-29928af6005997d2b02b4c3a3576a696a02fa269.tar.gz
zig-29928af6005997d2b02b4c3a3576a696a02fa269.zip
Merge pull request #7729 from jayschwa/remove-deprecated-stream
Remove deprecated stream aliases
Diffstat (limited to 'lib/std/fifo.zig')
-rw-r--r--lib/std/fifo.zig12
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);