From dae57f7361eaa6cbbea5b90d64364b0815bcd6cc Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 14 Jun 2025 18:33:21 +0900 Subject: refactor(blog/nuldoc): remove dead code --- vhosts/blog/nuldoc-src/djot/to_html.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vhosts/blog/nuldoc-src/djot/to_html.ts b/vhosts/blog/nuldoc-src/djot/to_html.ts index e2d6a9b6..c765cb07 100644 --- a/vhosts/blog/nuldoc-src/djot/to_html.ts +++ b/vhosts/blog/nuldoc-src/djot/to_html.ts @@ -20,7 +20,6 @@ export default async function toHtml(doc: Document): Promise { transformSectionTitleElement(doc); transformNoteElement(doc); addAttributesToExternalLinkElement(doc); - setDefaultLangAttribute(doc); traverseFootnotes(doc); removeUnnecessaryParagraphNode(doc); await transformAndHighlightCodeBlockElement(doc); @@ -242,13 +241,6 @@ function addAttributesToExternalLinkElement(doc: Document) { }); } -function setDefaultLangAttribute(_doc: Document) { - // TODO - // if (!e.attributes.has("lang")) { - // e.attributes.set("lang", "ja-JP"); - // } -} - function traverseFootnotes(doc: Document) { let footnoteCounter = 0; const footnoteMap = new Map(); -- cgit v1.2.3-70-g09d2