From 87ff41f213cc2e3d7862a4c539e2d13b7a43a5d0 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Mon, 2 Jan 2023 11:54:44 -0600 Subject: [PATCH] remove some commented out code --- packages/core/src/create.rs | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/packages/core/src/create.rs b/packages/core/src/create.rs index 4e2d8f0a2..30ee00f41 100644 --- a/packages/core/src/create.rs +++ b/packages/core/src/create.rs @@ -292,41 +292,6 @@ impl<'b> VirtualDom { // Safety: we promise not to re-alias this text later on after committing it to the mutation let unbounded_name: &str = unsafe { std::mem::transmute(attribute.name) }; - // match &attribute.value { - // AttributeValue::Text(value) => { - // // Safety: we promise not to re-alias this text later on after committing it to the mutation - // let unbounded_value: &str = unsafe { std::mem::transmute(*value) }; - - // self.mutations.push(SetAttribute { - // name: unbounded_name, - // value: unbounded_value, - // ns: attribute.namespace, - // id, - // }) - // } - // AttributeValue::Bool(value) => self.mutations.push(SetBoolAttribute { - // name: unbounded_name, - // value: *value, - // id, - // }), - // AttributeValue::Listener(_) => { - // self.mutations.push(NewEventListener { - // // all listeners start with "on" - // name: &unbounded_name[2..], - // id, - // }) - // } - // _ => { - - // } - // AttributeValue::Float(_) => todo!(), - // AttributeValue::Int(_) => todo!(), - // AttributeValue::Any() => todo!(), - // AttributeValue::None => todo!(), - // } - - // Safety: we promise not to re-alias this text later on after committing it to the mutation - match &attribute.value { AttributeValue::Listener(_) => { self.mutations.push(NewEventListener {