Remove the to_js methods.

They are unused.
This commit is contained in:
Ms2ger 2015-02-03 15:12:01 +01:00
parent 2ae7ed327d
commit 444e76c397

View file

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