mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove unused code from selector and style crates
This commit is contained in:
parent
8dc7a25893
commit
642b7c3ea1
9 changed files with 1 additions and 101 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue