diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-01-13 19:39:15 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-01-13 19:39:15 +0900 |
| commit | e9d5b6e12f222fc363bd22dd35589449be776f99 (patch) | |
| tree | 1e63b43db90e62051bbb705f31a99cb510e0d6fb /vhosts/blog/nuldoc-src/dom.ts | |
| parent | b36def683cb0bfe251c623c826ec7918b69a96b2 (diff) | |
| download | nsfisis.dev-e9d5b6e12f222fc363bd22dd35589449be776f99.tar.gz nsfisis.dev-e9d5b6e12f222fc363bd22dd35589449be776f99.tar.zst nsfisis.dev-e9d5b6e12f222fc363bd22dd35589449be776f99.zip | |
refactor(blog/nuldoc): remove unused functions
Diffstat (limited to 'vhosts/blog/nuldoc-src/dom.ts')
| -rw-r--r-- | vhosts/blog/nuldoc-src/dom.ts | 21 |
1 files changed, 0 insertions, 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<string, string>, - ...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), - }; -} |
