mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Remove the to_js methods.
They are unused.
This commit is contained in:
parent
2ae7ed327d
commit
444e76c397
1 changed files with 0 additions and 11 deletions
|
@ -5268,17 +5268,6 @@ pub trait ${castTraitName} : Sized {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
|
||||||
#[allow(unrooted_must_root)]
|
|
||||||
fn to_js<T: ${toBound}+Reflectable>(base: &JS<T>) -> Option<JS<Self>> {
|
|
||||||
unsafe {
|
|
||||||
match (*base.unsafe_get()).${checkFn}() {
|
|
||||||
true => Some(base.transmute_copy()),
|
|
||||||
false => None
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[allow(unrooted_must_root)]
|
#[allow(unrooted_must_root)]
|
||||||
fn to_layout_js<T: ${toBound}+Reflectable>(base: &LayoutJS<T>) -> Option<LayoutJS<Self>> {
|
fn to_layout_js<T: ${toBound}+Reflectable>(base: &LayoutJS<T>) -> Option<LayoutJS<Self>> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue