Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
binrysearch committed Sep 8, 2024
1 parent 667d314 commit 62af205
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 194 deletions.
26 changes: 0 additions & 26 deletions src/util/appendChild.ts

This file was deleted.

35 changes: 0 additions & 35 deletions src/util/checkLeft.ts

This file was deleted.

40 changes: 0 additions & 40 deletions src/util/checkRight.ts

This file was deleted.

45 changes: 0 additions & 45 deletions src/util/createElement.test.ts

This file was deleted.

31 changes: 0 additions & 31 deletions src/util/createElement.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/util/queryElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,13 @@ export const queryElements = (
return (container ?? document).querySelectorAll(selector);
};

export const queryElementByClassName = (
className: string,
container?: HTMLElement | null
): HTMLElement | null => {
return queryElement(`.${className}`, container);
};

export const queryElementsByClassName = (
className: string,
container?: HTMLElement | null
): NodeListOf<HTMLElement> => {
return queryElements(`.${className}`, container);
};

export const getElementByClassName = (
className: string,
container?: HTMLElement | null
): HTMLElement => {
const element = queryElementByClassName(className, container);
if (!element) {
throw new Error(`Element with class name ${className} not found`);
}
return element;
};

export const getElement = (
selector: string,
Expand Down

0 comments on commit 62af205

Please sign in to comment.