Bug 1673259 - Remove unused DeclarationBlock::get_at_importance. r=xidorn

Differential Revision: https://phabricator.services.mozilla.com/D94693
This commit is contained in:
Emilio Cobos Álvarez 2020-10-26 09:58:31 +00:00
Родитель 04d3a4a876
Коммит 4461cf30bf
1 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -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(