mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
zstd.Decompress: Delete unused/impossible "end" state
This commit is contained in:
parent
60b0b21296
commit
353cf1f671
@ -17,7 +17,6 @@ const State = union(enum) {
|
||||
new_frame,
|
||||
in_frame: InFrame,
|
||||
skipping_frame: usize,
|
||||
end,
|
||||
|
||||
const InFrame = struct {
|
||||
frame: Frame,
|
||||
@ -203,7 +202,6 @@ fn stream(r: *Reader, w: *Writer, limit: Limit) Reader.StreamError!usize {
|
||||
if (remaining.* == 0) d.state = .new_frame;
|
||||
return 0;
|
||||
},
|
||||
.end => return error.EndOfStream,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user