Remove unused items in gfx (#32423)

This commit is contained in:
Ngo Iok Ui (Wu Yu Wei) 2024-06-05 16:07:36 +09:00 committed by GitHub
parent 5f538b89e0
commit 49e15269c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 7 deletions

View file

@ -35,8 +35,6 @@ use crate::font_cache_thread::{
};
use crate::font_store::{CrossThreadFontStore, CrossThreadWebRenderFontStore};
use crate::font_template::{FontTemplate, FontTemplateRef, FontTemplateRefMethods};
#[cfg(target_os = "macos")]
use crate::platform::core_text_font_cache::CoreTextFontCache;
static SMALL_CAPS_SCALE_FACTOR: f32 = 0.8; // Matches FireFox (see gfxFont.h)

View file

@ -98,9 +98,4 @@ impl CoreTextFontCache {
identifier_cache.insert(au_size, core_text_font.clone());
Some(core_text_font)
}
pub(crate) fn clear_core_text_font_cache() {
let cache = CACHE.0.get_or_init(Default::default);
cache.write().clear();
}
}