aboutsummaryrefslogtreecommitdiff
path: root/lib/std/io/stream_source.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/io/stream_source.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/io/stream_source.zig')
-rw-r--r--lib/std/io/stream_source.zig16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/std/io/stream_source.zig b/lib/std/io/stream_source.zig
index 2e68e528ae..df0d6cd352 100644
--- a/lib/std/io/stream_source.zig
+++ b/lib/std/io/stream_source.zig
@@ -9,7 +9,7 @@ const testing = std.testing;
/// Provides `io.Reader`, `io.Writer`, and `io.SeekableStream` for in-memory buffers as
/// well as files.
-/// For memory sources, if the supplied byte buffer is const, then `io.OutStream` is not available.
+/// For memory sources, if the supplied byte buffer is const, then `io.Writer` is not available.
/// The error set of the stream functions is the error set of the corresponding file functions.
pub const StreamSource = union(enum) {
buffer: io.FixedBufferStream([]u8),
@@ -22,11 +22,7 @@ pub const StreamSource = union(enum) {
pub const GetSeekPosError = std.fs.File.GetPosError;
pub const Reader = io.Reader(*StreamSource, ReadError, read);
- /// Deprecated: use `Reader`
- pub const InStream = Reader;
pub const Writer = io.Writer(*StreamSource, WriteError, write);
- /// Deprecated: use `Writer`
- pub const OutStream = Writer;
pub const SeekableStream = io.SeekableStream(
*StreamSource,
SeekError,
@@ -89,20 +85,10 @@ pub const StreamSource = union(enum) {
return .{ .context = self };
}
- /// Deprecated: use `reader`
- pub fn inStream(self: *StreamSource) InStream {
- return .{ .context = self };
- }
-
pub fn writer(self: *StreamSource) Writer {
return .{ .context = self };
}
- /// Deprecated: use `writer`
- pub fn outStream(self: *StreamSource) OutStream {
- return .{ .context = self };
- }
-
pub fn seekableStream(self: *StreamSource) SeekableStream {
return .{ .context = self };
}