From 29f3d7c664002617bbd4e998238f728dea4a07ac Mon Sep 17 00:00:00 2001 From: Bashamega Date: Sat, 1 Nov 2025 09:12:13 +0200 Subject: [PATCH] Remove unused commentCleanup function from emitDom in build.ts --- src/build.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/build.ts b/src/build.ts index f22b8fe82..5b4514595 100644 --- a/src/build.ts +++ b/src/build.ts @@ -116,19 +116,10 @@ async function emitDom() { } catch { commentsMap = {}; } - commentCleanup(commentsMap); const result = convert(idl, commentsMap); return result; } - function commentCleanup(commentsMap: Record) { - for (const key in commentsMap) { - // Filters out phrases for nested comments as we retargets them: - // "This operation receives a dictionary, which has these members:" - commentsMap[key] = commentsMap[key].replace(/[,.][^,.]+:$/g, "."); - } - } - function mergeApiDescriptions( idl: Browser.WebIdl, descriptions: { interfaces: { interface: Record } },