Skip to content

Commit

Permalink
Remove extraneous color cache insertion (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia authored Aug 19, 2024
1 parent fcbbb20 commit f82ddab
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lossless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,6 @@ impl<R: BufRead> LosslessDecoder<R> {
for i in 0..length {
data[index * 4 + i * 4..][..4].copy_from_slice(&value);
}
if let Some(color_cache) = huffman_info.color_cache.as_mut() {
color_cache.insert(value);
}
} else {
for i in 0..length * 4 {
data[index * 4 + i] = data[index * 4 + i - dist * 4];
Expand Down

0 comments on commit f82ddab

Please sign in to comment.