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:
Simon Wülker 2025-09-23 23:58:17 +02:00 committed by GitHub
parent ac8895c3ae
commit dd8e4f231c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 0 additions and 281 deletions

View file

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