Remove JS<From>.transmute<To>().

This commit is contained in:
Tetsuharu OHZEKI 2015-01-31 17:19:04 +09:00
parent 9f57fa17d0
commit b7443bef83

View file

@ -395,12 +395,6 @@ impl<T: Reflectable> LayoutJS<T> {
}
impl<From> JS<From> {
/// Return `self` as a `JS` of another type.
//XXXjdm It would be lovely if this could be private.
pub unsafe fn transmute<To>(self) -> JS<To> {
mem::transmute(self)
}
/// Return `self` as a `JS` of another type.
pub unsafe fn transmute_copy<To>(&self) -> JS<To> {
mem::transmute_copy(self)