Skip to content

Commit 29f3d7c

Browse files
committed
Remove unused commentCleanup function from emitDom in build.ts
1 parent 3e0771e commit 29f3d7c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/build.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,10 @@ async function emitDom() {
116116
} catch {
117117
commentsMap = {};
118118
}
119-
commentCleanup(commentsMap);
120119
const result = convert(idl, commentsMap);
121120
return result;
122121
}
123122

124-
function commentCleanup(commentsMap: Record<string, string>) {
125-
for (const key in commentsMap) {
126-
// Filters out phrases for nested comments as we retargets them:
127-
// "This operation receives a dictionary, which has these members:"
128-
commentsMap[key] = commentsMap[key].replace(/[,.][^,.]+:$/g, ".");
129-
}
130-
}
131-
132123
function mergeApiDescriptions(
133124
idl: Browser.WebIdl,
134125
descriptions: { interfaces: { interface: Record<string, any> } },

0 commit comments

Comments
 (0)