Skip to content

Commit

Permalink
Remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Feb 28, 2025
1 parent afb6ccd commit 36fefce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

### API Breaking Changes

* Removed deprecated `Info::encode` method.
* Improved the compression settings API.
* Removed deprecated `Info::encode` and `Encoder::set_srgb` methods.
* Improved the compression settings API for encoding.
* `Decoder` now requires a reader that implements `Seek` and `BufRead` traits.
* Bump bitflags dependency to 2.0.

Expand Down
12 changes: 0 additions & 12 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,6 @@ impl<'a, W: Write> Encoder<'a, W> {
self.info.source_chromaticities = Some(source_chromaticities);
}

/// Mark the image data as conforming to the SRGB color space with the specified rendering intent.
///
/// Matching source gamma and chromaticities chunks are added automatically.
/// Any manually specified source gamma, chromaticities, or ICC profiles will be ignored.
#[doc(hidden)]
#[deprecated(note = "use set_source_srgb")]
pub fn set_srgb(&mut self, rendering_intent: super::SrgbRenderingIntent) {
self.info.set_source_srgb(rendering_intent);
self.info.source_gamma = Some(crate::srgb::substitute_gamma());
self.info.source_chromaticities = Some(crate::srgb::substitute_chromaticities());
}

/// Mark the image data as conforming to the SRGB color space with the specified rendering intent.
///
/// Any ICC profiles will be ignored.
Expand Down

0 comments on commit 36fefce

Please sign in to comment.