diff --git a/lib/std/io/Writer.zig b/lib/std/io/Writer.zig index 9a0839c9c5..d79959dcb1 100644 --- 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. ///