refactor: remove unused parseClassList utility

This commit is contained in:
2026-06-21 01:11:44 +02:00
committed by Milas Holsting
parent 1de75db825
commit 3fe8059e77

View File

@@ -1,17 +1,3 @@
/**
* Parse a space-separated class list string into an array, filtering empty entries.
*/
export const parseClassList = (value: string | null): string[] => {
if (!value) {
return [];
}
return value
.split(" ")
.map((entry: string): string => entry.trim())
.filter((entry: string): boolean => entry.length > 0);
};
export const onReady = (fn: () => void): void => { export const onReady = (fn: () => void): void => {
if (document.readyState === "loading") { if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", fn, { once: true }); document.addEventListener("DOMContentLoaded", fn, { once: true });