зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1673259 - Remove unused DeclarationBlock::get_at_importance. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D94693
This commit is contained in:
Родитель
04d3a4a876
Коммит
4461cf30bf
|
@ -348,21 +348,6 @@ impl PropertyDeclarationBlock {
|
|||
.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
|
||||
/// block.
|
||||
pub fn shorthand_to_css(
|
||||
|
|
Загрузка…
Ссылка в новой задаче