Use BarCast::to_layout_js() instead of LayoutJS.to_script().

This commit is contained in:
Tetsuharu OHZEKI 2015-01-25 02:13:00 +09:00
parent 80a4911f9c
commit 8889041c19
2 changed files with 25 additions and 33 deletions

View file

@ -144,14 +144,6 @@ pub struct LayoutJS<T> {
ptr: NonZero<*const T>
}
impl<T> LayoutJS<T> {
pub fn to_script(self) -> JS<T> {
JS {
ptr: self.ptr
}
}
}
impl<T> Copy for JS<T> {}
impl<T> Copy for LayoutJS<T> {}