zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 10d6db5d7d1fb62ee2915a7ad2c7feb771ea3bbb (tree)
parent aa1bdb43e01318a7a2724a44e371ca575794722d
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed,  9 Jul 2025 19:06:35 -0700

std.io.Writer: remove some unimplemented functions

YAGNI

Diffstat:
Mlib/std/io/Writer.zig | 38--------------------------------------
1 file changed, 0 insertions(+), 38 deletions(-)

diff --git a/lib/std/io/Writer.zig b/lib/std/io/Writer.zig @@ -181,20 +181,6 @@ pub fn writeSplat(w: *Writer, data: []const []const u8, splat: usize) Error!usiz return count; } -/// Equivalent to `writeSplat` but writes at most `limit` bytes. -pub fn writeSplatLimit( - w: *Writer, - data: []const []const u8, - splat: usize, - limit: Limit, -) Error!usize { - _ = w; - _ = data; - _ = splat; - _ = limit; - @panic("TODO"); -} - /// Returns how many bytes were consumed from `header` and `data`. pub fn writeSplatHeader( w: *Writer, @@ -242,22 +228,6 @@ test "writeSplatHeader splatting avoids buffer aliasing temptation" { ); } -/// Equivalent to `writeSplatHeader` but writes at most `limit` bytes. -pub fn writeSplatHeaderLimit( - w: *Writer, - header: []const u8, - data: []const []const u8, - splat: usize, - limit: Limit, -) Error!usize { - _ = w; - _ = header; - _ = data; - _ = splat; - _ = limit; - @panic("TODO"); -} - /// Drains all remaining buffered data. pub fn flush(w: *Writer) Error!void { return w.vtable.flush(w); @@ -827,14 +797,6 @@ pub inline fn writeSliceEndian( } } -/// Asserts that the buffer storage capacity is at least enough to store `@sizeOf(Elem)` -pub fn writeSliceSwap(w: *Writer, Elem: type, slice: []const Elem) Error!void { - // copy to storage first, then swap in place - _ = w; - _ = slice; - @panic("TODO"); -} - /// Unlike `writeSplat` and `writeVec`, this function will call into `VTable` /// even if there is enough buffer capacity for the file contents. ///