Skip to content

Commit 2a9fa97

Browse files
committed
remove unused getLanguage
1 parent dc5c638 commit 2a9fa97

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/vite/observable.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,3 @@ function isSpaceCode(code: number): boolean {
212212
function escapeScript(script: string): string {
213213
return script.replace(/<\/script>/g, "<\\/script>"); // TODO handle other contexts
214214
}
215-
216-
function getLanguage(code: Element): string | undefined {
217-
return [...code.classList]
218-
.find((c) => c.startsWith("language-"))
219-
?.slice("language-".length)
220-
?.toLowerCase();
221-
}

0 commit comments

Comments
 (0)