Remove *Cast::from_actual.

Since JSRef was removed, from_actual duplicates from_ref.
This commit is contained in:
Ms2ger 2015-07-04 12:55:01 +02:00
parent 02d84a1347
commit 2f88b84e07
3 changed files with 8 additions and 13 deletions

View file

@ -5736,7 +5736,7 @@ class GlobalGenRoots():
impl ${selfName} for ${baseName} {
#[inline]
fn ${fname}(&self) -> bool {
let base: &${parentName} = ${parentName}Cast::from_actual(self);
let base: &${parentName} = ${parentName}Cast::from_ref(self);
base.${fname}()
}
}
@ -5805,11 +5805,6 @@ impl ${name}Cast {
pub fn from_root<T: ${fromBound}+Reflectable>(derived: Root<T>) -> Root<${name}> {
unsafe { mem::transmute(derived) }
}
#[inline]
pub fn from_actual<'a, T: ${fromBound}+Reflectable>(derived: &'a T) -> &'a ${name} {
unsafe { mem::transmute(derived) }
}
}
""").substitute({'checkFn': 'is_' + name.lower(),
'name': name,