chore: Cleanup

This commit is contained in:
CUB3D 2020-07-04 21:02:01 +01:00 committed by Mike Welsh
parent ab58cff8b3
commit 64eed4def9
1 changed files with 7 additions and 5 deletions

View File

@ -10,6 +10,7 @@ use gc_arena::MutationContext;
use crate::avm1::color_transform_object::ColorTransformObject;
use std::convert::Into;
use crate::color_transform::ColorTransform;
macro_rules! with_color_transform {
($obj: ident, $gc: ident, $($name: expr => [$get: ident, $set: ident],)*) => {
@ -77,12 +78,13 @@ pub fn constructor<'gc>(
Ok(Value::Undefined)
}
/*pub fn object_to_color_transform<'gc>(
// We'll need this soon!
#[allow(dead_code)]
pub fn object_to_color_transform<'gc>(
object: Object<'gc>,
activation: &mut Activation<'_, 'gc>,
context: &mut UpdateContext<'_, 'gc, '_>,
) -> Result<ColorTransform, Error<'gc>> {
//TODO:
let red_multiplier = object
.get("redMultiplier", activation, context)?
.coerce_to_f64(activation, context)? as f32;
@ -118,7 +120,7 @@ pub fn constructor<'gc>(
b_add: blue_offset,
a_add: alpha_offset,
})
}*/
}
pub fn get_rgb<'gc>(
_activation: &mut Activation<'_, 'gc>,