mirror of
https://github.com/servo/servo.git
synced 2025-09-23 13:20:11 +01:00
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:
parent
fc6bee8b81
commit
ff8be71335
1 changed files with 0 additions and 8 deletions
|
@ -48,14 +48,6 @@ pub struct FontTable {
|
||||||
data: Vec<u8>,
|
data: Vec<u8>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FontTable {
|
|
||||||
pub(crate) fn wrap(data: &[u8]) -> FontTable {
|
|
||||||
FontTable {
|
|
||||||
data: data.to_vec(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl FontTableMethods for FontTable {
|
impl FontTableMethods for FontTable {
|
||||||
fn buffer(&self) -> &[u8] {
|
fn buffer(&self) -> &[u8] {
|
||||||
&self.data
|
&self.data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue