zstd.Decompress: Delete unused/impossible "end" state

This commit is contained in:
Ryan Liptak 2025-08-14 01:17:52 -07:00
parent 60b0b21296
commit 353cf1f671

View file

@ -17,7 +17,6 @@ const State = union(enum) {
new_frame, new_frame,
in_frame: InFrame, in_frame: InFrame,
skipping_frame: usize, skipping_frame: usize,
end,
const InFrame = struct { const InFrame = struct {
frame: Frame, frame: Frame,
@ -203,7 +202,6 @@ fn stream(r: *Reader, w: *Writer, limit: Limit) Reader.StreamError!usize {
if (remaining.* == 0) d.state = .new_frame; if (remaining.* == 0) d.state = .new_frame;
return 0; return 0;
}, },
.end => return error.EndOfStream,
} }
} }