From ff8be71335dfcb2a6438a0dc6c7ba2b1f7abfacf Mon Sep 17 00:00:00 2001 From: Euclid Ye Date: Thu, 4 Sep 2025 14:25:59 +0800 Subject: [PATCH] font: Remove unused `FontTable` constructor for Windows (#39130) #39112 restricts accessibility for some font functions, exposing some functions that haven't been used for a long time. Now it is detected by Lint as dead code. Signed-off-by: Euclid Ye --- components/fonts/platform/windows/font.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/components/fonts/platform/windows/font.rs b/components/fonts/platform/windows/font.rs index 08bebd66d0e..09183b6700e 100644 --- a/components/fonts/platform/windows/font.rs +++ b/components/fonts/platform/windows/font.rs @@ -48,14 +48,6 @@ pub struct FontTable { data: Vec, } -impl FontTable { - pub(crate) fn wrap(data: &[u8]) -> FontTable { - FontTable { - data: data.to_vec(), - } - } -} - impl FontTableMethods for FontTable { fn buffer(&self) -> &[u8] { &self.data