avm2: Removed Object::as_bitmap_data() as it's no longer used (or recommended to use)

This commit is contained in:
Nathan Adams 2023-04-02 17:45:45 +02:00
parent b1f7fecacb
commit 1521c7b6ee
2 changed files with 0 additions and 10 deletions

View File

@ -1223,11 +1223,6 @@ pub trait TObject<'gc>: 'gc + Collect + Debug + Into<Object<'gc>> + Clone + Copy
None
}
/// Unwrap this object's bitmap data
fn as_bitmap_data(&self) -> Option<GcCell<'gc, BitmapData<'gc>>> {
None
}
fn as_bitmap_data_wrapper(&self) -> Option<BitmapDataWrapper<'gc>> {
None
}

View File

@ -89,11 +89,6 @@ impl<'gc> TObject<'gc> for BitmapDataObject<'gc> {
Ok(Value::Object(Object::from(*self)))
}
/// Unwrap this object's bitmap data
fn as_bitmap_data(&self) -> Option<GcCell<'gc, BitmapData<'gc>>> {
self.0.read().bitmap_data.map(|wrapper| wrapper.sync())
}
fn as_bitmap_data_wrapper(&self) -> Option<BitmapDataWrapper<'gc>> {
self.0.read().bitmap_data
}