mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Remove *Cast::from_actual.
Since JSRef was removed, from_actual duplicates from_ref.
This commit is contained in:
parent
02d84a1347
commit
2f88b84e07
3 changed files with 8 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue