From 444e76c397590c26856dac8ef13cae27c019b65c Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 3 Feb 2015 15:12:01 +0100 Subject: Remove the to_js methods. They are unused. --- components/script/dom/bindings/codegen/CodegenRust.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'components/script/dom') 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 @@ -5268,17 +5268,6 @@ pub trait ${castTraitName} : Sized { } } - #[inline(always)] - #[allow(unrooted_must_root)] - fn to_js(base: &JS) -> Option> { - unsafe { - match (*base.unsafe_get()).${checkFn}() { - true => Some(base.transmute_copy()), - false => None - } - } - } - #[inline(always)] #[allow(unrooted_must_root)] fn to_layout_js(base: &LayoutJS) -> Option> { -- cgit v1.2.3