mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Remove unused DeclarationBlock::get_at_importance.
Differential Revision: https://phabricator.services.mozilla.com/D94693
This commit is contained in:
parent
8a723d48d5
commit
5b42605b79
1 changed files with 0 additions and 15 deletions
|
@ -348,21 +348,6 @@ impl PropertyDeclarationBlock {
|
||||||
.find(|(declaration, _)| declaration.id() == property)
|
.find(|(declaration, _)| declaration.id() == property)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a declaration for a given property with the specified importance.
|
|
||||||
#[inline]
|
|
||||||
pub fn get_at_importance(
|
|
||||||
&self,
|
|
||||||
property: PropertyDeclarationId,
|
|
||||||
importance: Importance,
|
|
||||||
) -> Option<&PropertyDeclaration> {
|
|
||||||
let (declaration, i) = self.get(property)?;
|
|
||||||
if i == importance {
|
|
||||||
Some(declaration)
|
|
||||||
} else {
|
|
||||||
None
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Tries to serialize a given shorthand from the declarations in this
|
/// Tries to serialize a given shorthand from the declarations in this
|
||||||
/// block.
|
/// block.
|
||||||
pub fn shorthand_to_css(
|
pub fn shorthand_to_css(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue