chore(repo): remove dead code and useless tests (#3375)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-10 21:43:29 +02:00
1 parent 7e177a1c90
commit 1cd62eb661
1391 files changed
+783 -120415

No files matched your search

-9
View File
@@ -143,7 +143,6 @@ pub fn clamp_size(raw_target: u32, kind: AssetKind) -> u32 {
#[cfg(test)]
mod tests {
use super::*;
use crate::media_limits::MediaLimits;
fn asset_cache_key(raw: Option<&str>, kind: AssetKind) -> u32 {
clamp_size(parse_image_size(raw), kind)
@@ -220,12 +219,4 @@ mod tests {
assert_eq!(512, asset_cache_key(Some("99999"), AssetKind::Emoji));
assert_eq!(512, asset_cache_key(Some("99999"), AssetKind::Sticker));
}
#[test]
fn animated_frame_default_allows_dense_short_clips() {
assert_eq!(
MAX_ANIMATED_FRAMES_DEFAULT,
MediaLimits::default_from_config().animated_frames()
);
}
}