diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index a7f73e67494..cfa760a7679 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -5270,17 +5270,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>> { unsafe { match (*base.unsafe_get()).${checkFn}() { |