remove some commented out code

This commit is contained in:
Evan Almloff 2023-01-02 11:54:44 -06:00
parent 613a7ac55b
commit 87ff41f213

View file

@ -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 {