mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -298,18 +298,6 @@ impl AttrValue {
|
|||
}
|
||||
}
|
||||
|
||||
/// Assumes the `AttrValue` is a `Length` and returns its value
|
||||
///
|
||||
/// ## Panics
|
||||
///
|
||||
/// Panics if the `AttrValue` is not a `Length`
|
||||
pub fn as_length(&self) -> Option<&Length> {
|
||||
match *self {
|
||||
AttrValue::Length(_, ref length) => length.as_ref(),
|
||||
_ => panic!("Length not found"),
|
||||
}
|
||||
}
|
||||
|
||||
/// Assumes the `AttrValue` is a `Dimension` and returns its value
|
||||
///
|
||||
/// ## Panics
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue