aboutsummaryrefslogtreecommitdiff
path: root/lib/std/io/stream_source.zig
diff options
context:
space:
mode:
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 };
}