avm2: Remove redundant event phase accessor

This commit is contained in:
David Wendt 2020-12-09 18:32:35 -05:00 committed by Mike Welsh
parent ec63ff55cb
commit dc32d7894c
2 changed files with 1 additions and 5 deletions

View File

@ -160,8 +160,4 @@ impl<'gc> Event<'gc> {
pub fn current_target(&self) -> Option<Object<'gc>> {
self.current_target
}
pub fn event_phase(&self) -> EventPhase {
self.event_phase
}
}

View File

@ -126,7 +126,7 @@ pub fn event_phase<'gc>(
_args: &[Value<'gc>],
) -> Result<Value<'gc>, Error> {
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());
}