Remove unused code from selector and style crates

This commit is contained in:
est31 2019-06-07 10:49:07 +02:00
parent 8dc7a25893
commit 642b7c3ea1
9 changed files with 1 additions and 101 deletions

View file

@ -135,16 +135,6 @@ impl StyleSource {
block.read_with(guard)
}
/// Indicates if this StyleSource is a style rule.
pub fn is_rule(&self) -> bool {
self.0.is_first()
}
/// Indicates if this StyleSource is a PropertyDeclarationBlock.
pub fn is_declarations(&self) -> bool {
self.0.is_second()
}
/// Returns the style rule if applicable, otherwise None.
pub fn as_rule(&self) -> Option<ArcBorrow<Locked<StyleRule>>> {
self.0.as_first()