avm1: Remove `StageObject::as_executable`
It was identical to the default implementation of `TObject`, and thus unnecessary.
This commit is contained in:
parent
3ddd8ff31c
commit
ea73dbc367
|
@ -2,7 +2,6 @@
|
|||
|
||||
use crate::avm1::activation::Activation;
|
||||
use crate::avm1::error::Error;
|
||||
use crate::avm1::function::Executable;
|
||||
use crate::avm1::property::Attribute;
|
||||
use crate::avm1::property_map::PropertyMap;
|
||||
use crate::avm1::{AvmString, Object, ObjectPtr, ScriptObject, TDisplayObject, TObject, Value};
|
||||
|
@ -474,9 +473,6 @@ impl<'gc> TObject<'gc> for StageObject<'gc> {
|
|||
fn as_display_object(&self) -> Option<DisplayObject<'gc>> {
|
||||
Some(self.0.read().display_object)
|
||||
}
|
||||
fn as_executable(&self) -> Option<Executable<'gc>> {
|
||||
None
|
||||
}
|
||||
|
||||
fn as_ptr(&self) -> *const ObjectPtr {
|
||||
self.0.read().base.as_ptr() as *const ObjectPtr
|
||||
|
|
Loading…
Reference in New Issue