remove unused code

pull/931/head
Rich Harris 8 years ago
parent 02b0dda9cc
commit 956d7b17b8

@ -190,19 +190,6 @@ export default function visitElement(
visitAttributesAndAddProps(); visitAttributesAndAddProps();
} }
// special case bound <option> without a value attribute
if (
node.name === 'option' &&
!node.attributes.find(
(attribute: Node) =>
attribute.type === 'Attribute' && attribute.name === 'value'
)
) {
// TODO check it's bound
const statement = `${name}.__value = ${name}.textContent;`;
node.initialUpdate = node.lateUpdate = statement;
}
if (!childState.namespace && node.canUseInnerHTML && node.children.length > 0) { if (!childState.namespace && node.canUseInnerHTML && node.children.length > 0) {
if (node.children.length === 1 && node.children[0].type === 'Text') { if (node.children.length === 1 && node.children[0].type === 'Text') {
block.builders.create.addLine( block.builders.create.addLine(
@ -219,10 +206,6 @@ export default function visitElement(
}); });
} }
if (node.lateUpdate) {
block.builders.update.addLine(node.lateUpdate);
}
if (node.name === 'select') { if (node.name === 'select') {
visitAttributesAndAddProps(); visitAttributesAndAddProps();
} }

Loading…
Cancel
Save