Remove `Avm2Function` as it is no longer used.

This commit is contained in:
David Wendt 2020-07-02 21:58:54 -04:00
parent 098b034de0
commit 5b5bf0719e
1 changed files with 0 additions and 17 deletions

View File

@ -15,23 +15,6 @@ use crate::context::UpdateContext;
use gc_arena::{Collect, CollectionContext, GcCell, MutationContext};
use std::fmt;
/// Represents an AVM2 function.
#[derive(Collect, Clone, Debug)]
#[collect(no_drop)]
pub struct Avm2Function<'gc> {
/// The AVM method entry used to create this function.
pub method: BytecodeMethod<'gc>,
/// Closure scope stack at time of creation
pub scope: Option<GcCell<'gc, Scope<'gc>>>,
/// The reciever this method is attached to.
///
/// Objects without a reciever are free functions that can be invoked with
/// any desired parameter for `this`.
pub reciever: Option<Object<'gc>>,
}
/// Represents code that can be executed by some means.
#[derive(Clone)]
pub enum Executable<'gc> {