From 8a65ac764be950f430bf5f2cd38402a858786729 Mon Sep 17 00:00:00 2001 From: CUB3D Date: Wed, 17 Jun 2020 18:23:17 +0100 Subject: [PATCH] chore: Clean up comments --- core/src/avm1/globals/shared_object.rs | 2 +- core/src/avm1/shared_object.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/avm1/globals/shared_object.rs b/core/src/avm1/globals/shared_object.rs index f13da708a..de97ccb60 100644 --- a/core/src/avm1/globals/shared_object.rs +++ b/core/src/avm1/globals/shared_object.rs @@ -48,7 +48,7 @@ fn recursive_serialize<'gc>( Value::Number(f) => json_obj[k] = f.into(), Value::String(s) => json_obj[k] = s.into(), Value::Object(o) => { - // Don't attempt to serialize functions, etc + // Don't attempt to serialize functions if !o .is_instance_of(avm, action_context, o, avm.prototypes.function) .unwrap() diff --git a/core/src/avm1/shared_object.rs b/core/src/avm1/shared_object.rs index 2f8a29823..928b8b9d0 100644 --- a/core/src/avm1/shared_object.rs +++ b/core/src/avm1/shared_object.rs @@ -23,6 +23,7 @@ pub struct SharedObjectData<'gc> { /// The local name of this shared object name: Option, + // In future this will also handle remote SharedObjects } impl fmt::Debug for SharedObject<'_> { @@ -47,9 +48,6 @@ impl<'gc> SharedObject<'gc> { }, )) } - //TODO: any need for these - - //TODO: use enum Remote(url), Local(name) pub fn set_name(&self, gc_context: MutationContext<'gc, '_>, name: String) { self.0.write(gc_context).name = Some(name);