mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +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)]
|
||||
#[allow(unrooted_must_root)]
|
||||
fn to_layout_js<T: ${toBound}+Reflectable>(base: &LayoutJS<T>) -> Option<LayoutJS<Self>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue