From e9d5b6e12f222fc363bd22dd35589449be776f99 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 13 Jan 2025 19:39:15 +0900 Subject: refactor(blog/nuldoc): remove unused functions --- vhosts/blog/nuldoc-src/dom.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/vhosts/blog/nuldoc-src/dom.ts b/vhosts/blog/nuldoc-src/dom.ts index bc10e134..478cbc6c 100644 --- a/vhosts/blog/nuldoc-src/dom.ts +++ b/vhosts/blog/nuldoc-src/dom.ts @@ -78,24 +78,3 @@ export function forEachChildRecursively(e: Element, f: (n: Node) => void) { }; forEachChild(e, g); } - -function makeTextNode(content: string): Text { - return { - kind: "text", - content: content, - raw: false, - }; -} - -export function el( - name: string, - attrs: Record, - ...children: (Node | string)[] -): Element { - return { - kind: "element", - name: name, - attributes: new Map(Object.entries(attrs)), - children: children.map((n) => typeof n === "string" ? makeTextNode(n) : n), - }; -} -- cgit v1.2.3-70-g09d2