mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Trivially cleanup and remove some dead font code.
Differential Revision: https://phabricator.services.mozilla.com/D24271
This commit is contained in:
parent
2f8e05e9e0
commit
c49a88ec84
1 changed files with 2 additions and 12 deletions
|
@ -530,18 +530,8 @@ impl FontFamily {
|
|||
|
||||
/// Parse a specified font-family value
|
||||
pub fn parse_specified<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>> {
|
||||
input
|
||||
.parse_comma_separated(|input| SingleFontFamily::parse(input))
|
||||
.map(|v| FontFamily::Values(FontFamilyList::new(v.into_boxed_slice())))
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
/// Return the generic ID if it is a single generic font
|
||||
pub fn single_generic(&self) -> Option<u8> {
|
||||
match *self {
|
||||
FontFamily::Values(ref values) => values.single_generic(),
|
||||
_ => None,
|
||||
}
|
||||
let values = input.parse_comma_separated(SingleFontFamily::parse)?;
|
||||
Ok(FontFamily::Values(FontFamilyList::new(values.into_boxed_slice())))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue