avm2: Removed Object::as_bitmap_data() as it's no longer used (or recommended to use)
This commit is contained in:
parent
b1f7fecacb
commit
1521c7b6ee
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue