Skip to content

Commit

Permalink
Remove redundant state
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Jan 5, 2025
1 parent ac52028 commit 9ab5c4f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/reader/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ enum ByteValue {
ControlFlags,
ImageFlags,
TransparentIdx,
CodeSize,
}

/// Decoder for `Frame::make_lzw_pre_encoded`
Expand Down Expand Up @@ -627,10 +626,9 @@ impl StreamingDecoder {
frame.palette = Some(pal);
goto!(LocalPalette(entries))
} else {
goto!(Byte(CodeSize))
goto!(LocalPalette(0))
}
}
CodeSize => goto!(LzwInit(b)),
}
}
GlobalPalette(left) => {
Expand Down

0 comments on commit 9ab5c4f

Please sign in to comment.