1
0
Эх сурвалжийг харах

remove some commented out code

Evan Almloff 2 жил өмнө
parent
commit
87ff41f213

+ 0 - 35
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 {