avm2: Remove redundant event phase accessor
This commit is contained in:
parent
ec63ff55cb
commit
dc32d7894c
|
@ -160,8 +160,4 @@ impl<'gc> Event<'gc> {
|
||||||
pub fn current_target(&self) -> Option<Object<'gc>> {
|
pub fn current_target(&self) -> Option<Object<'gc>> {
|
||||||
self.current_target
|
self.current_target
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn event_phase(&self) -> EventPhase {
|
|
||||||
self.event_phase
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,7 +126,7 @@ pub fn event_phase<'gc>(
|
||||||
_args: &[Value<'gc>],
|
_args: &[Value<'gc>],
|
||||||
) -> Result<Value<'gc>, Error> {
|
) -> Result<Value<'gc>, Error> {
|
||||||
if let Some(evt) = this.unwrap().as_event() {
|
if let Some(evt) = this.unwrap().as_event() {
|
||||||
let event_phase: u32 = evt.event_phase().into();
|
let event_phase: u32 = evt.phase().into();
|
||||||
return Ok(event_phase.into());
|
return Ok(event_phase.into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue