diff --git a/src/error.rs b/src/error.rs index 8c51fbf..cd7ad30 100644 --- a/src/error.rs +++ b/src/error.rs @@ -61,8 +61,6 @@ pub enum TiffFormatError { ByteExpected(Value), UnsignedIntegerExpected(Value), SignedIntegerExpected(Value), - #[allow(deprecated)] - InflateError(InflateError), Format(String), RequiredTagEmpty(Tag), #[doc(hidden)] @@ -113,7 +111,6 @@ impl fmt::Display for TiffFormatError { SignedIntegerExpected(ref val) => { write!(fmt, "Expected signed integer, {:?} found.", val) } - InflateError(_) => write!(fmt, "Failed to decode inflate data."), Format(ref val) => write!(fmt, "Invalid format: {:?}.", val), RequiredTagEmpty(ref val) => write!(fmt, "Required tag {:?} was empty.", val), __NonExhaustive => unreachable!(), @@ -121,12 +118,6 @@ impl fmt::Display for TiffFormatError { } } -/// Decompression failed due to faulty compressed data. -#[derive(Debug, Clone, PartialEq, Eq, Hash)] -#[allow(deprecated)] -#[deprecated = "This type is not used anymore: deflate errors are now propagated as regular `io::Error`s"] -pub struct InflateError(()); - /// The Decoder does not support features required by the image. /// /// This only captures known failures for which the standard either does not require support or an diff --git a/src/lib.rs b/src/lib.rs index f736f20..5d766cc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,9 +17,6 @@ pub mod tags; pub use self::error::{TiffError, TiffFormatError, TiffResult, TiffUnsupportedError, UsageError}; -#[allow(deprecated)] -pub use self::error::InflateError; - /// An enumeration over supported color types and their bit depths #[derive(Copy, PartialEq, Eq, Debug, Clone, Hash)] pub enum ColorType {