Skip to content

Commit

Permalink
refactor: ♻️ removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Jul 4, 2024
1 parent 35e8a5c commit a49013c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/cli/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ use rimage::codecs::mozjpeg::MozJpegEncoder;
use rimage::codecs::oxipng::OxiPngEncoder;
#[cfg(feature = "webp")]
use rimage::codecs::webp::WebPEncoder;
#[cfg(feature = "tiff")]
use tiff::{decoder::DecodingResult, ColorType};
#[cfg(feature = "tiff")]
use zune_core::colorspace::ColorSpace;
use zune_core::{bytestream::ZByteWriterTrait, options::EncoderOptions};
use zune_image::{
codecs::{
Expand Down
5 changes: 1 addition & 4 deletions src/codecs/tiff/decoder/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use std::io::{Read, Seek};

use zune_core::{
bit_depth::{BitDepth, BitType},
colorspace::ColorSpace,
};
use zune_core::colorspace::ColorSpace;
use zune_image::{errors::ImageErrors, image::Image, traits::DecoderTrait};

/// A Tiff decoder
Expand Down
2 changes: 1 addition & 1 deletion src/codecs/tiff/decoder/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ fn decode() {
let img = Image::from_decoder(decoder).unwrap();

assert_eq!(img.dimensions(), (48, 80));
assert_eq!(img.colorspace(), ColorSpace::RGBA);
assert_eq!(img.colorspace(), ColorSpace::RGB);
}

0 comments on commit a49013c

Please sign in to comment.