a post-component library for building user-interfaces on the web.

removed unused create_span function

tombl.dev c917d5a2 73ad6cd2

verified
-9
-9
src/client/span.ts
··· 5 5 readonly _end: Node 6 6 } 7 7 8 - export function create_span(node: Node): Span { 9 - assert(node.parentNode !== null) 10 - 11 - return { 12 - _start: node.parentNode.insertBefore(new Text(), node), 13 - _end: node.parentNode.insertBefore(new Text(), node.nextSibling), 14 - } 15 - } 16 - 17 8 export function create_span_into(parent: Node): Span { 18 9 return { _start: parent.appendChild(new Text()), _end: parent.appendChild(new Text()) } 19 10 }