chore: Clean up comments

This commit is contained in:
CUB3D 2020-06-17 18:23:17 +01:00
parent 2538d430ff
commit 8a65ac764b
2 changed files with 2 additions and 4 deletions

View File

@ -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()

View File

@ -23,6 +23,7 @@ pub struct SharedObjectData<'gc> {
/// The local name of this shared object
name: Option<String>,
// 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);