Merge pull request #355 from Shnatsel/drop-exact-level

Drop obsolete Deflate::exact_level()
This commit is contained in:
Sergey "Shnatsel" Davidoff authored and GitHub committed 2026-03-06 18:49:06 +00:00
commit 22ff2b5c50
1 file changed
-12
-12
View File
@@ -20,18 +20,6 @@ impl Deflate {
level: FlateCompression::new(level as u32),
}
}
/// Create a new deflate compressor with an exact level of compression.
///
/// `0` stands for uncompressed
/// `1` stands for light but fast compression
/// `6` is the recommended balanced default
/// `9` is maximum compression ratio at the cost of slow encoding
pub fn exact_level(level: u8) -> Self {
Self {
level: FlateCompression::new(level as u32),
}
}
}
impl Default for Deflate {