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 <euclid.ye@huawei.com>
This commit is contained in:
Euclid Ye 2025-09-04 14:25:59 +08:00 committed by GitHub
parent fc6bee8b81
commit ff8be71335
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,14 +48,6 @@ pub struct FontTable {
data: Vec<u8>,
}
impl FontTable {
pub(crate) fn wrap(data: &[u8]) -> FontTable {
FontTable {
data: data.to_vec(),
}
}
}
impl FontTableMethods for FontTable {
fn buffer(&self) -> &[u8] {
&self.data