mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
script: Remove dead code in xpath implementation (#39454)
Testing: Verified by the fact that the code still compiles, and existing web platform tests of course Part of https://github.com/servo/servo/issues/34527 Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
ac8895c3ae
commit
dd8e4f231c
5 changed files with 0 additions and 281 deletions
|
@ -86,10 +86,6 @@ impl Value {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn into_boolean(self) -> bool {
|
||||
self.boolean()
|
||||
}
|
||||
|
||||
pub(crate) fn number(&self) -> f64 {
|
||||
match *self {
|
||||
Value::Boolean(val) => {
|
||||
|
@ -105,10 +101,6 @@ impl Value {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn into_number(self) -> f64 {
|
||||
self.number()
|
||||
}
|
||||
|
||||
pub(crate) fn string(&self) -> string::String {
|
||||
match *self {
|
||||
Value::Boolean(v) => v.to_string(),
|
||||
|
@ -133,13 +125,6 @@ impl Value {
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn into_string(self) -> string::String {
|
||||
match self {
|
||||
Value::String(val) => val,
|
||||
other => other.string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! from_impl {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue