mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
zstd.Decompress: Delete unused/impossible "end" state
This commit is contained in:
parent
60b0b21296
commit
353cf1f671
1 changed files with 0 additions and 2 deletions
|
|
@ -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,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue