Skip to content

Commit e33d3d3

Browse files
authored
chore: remove unused functions (#366)
1 parent 483762b commit e33d3d3

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

packages/multiple-select-vanilla/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export {
1717
insertAfter,
1818
omitProp,
1919
toggleElement,
20-
toggleElementClass,
2120
windowScrollPosition,
2221
} from './utils/domUtils.js';
2322
export {
@@ -30,7 +29,6 @@ export {
3029
removeUndefined,
3130
setDataKeys,
3231
stripScripts,
33-
toCamelCase,
3432
} from './utils/utils.js';
3533
export { multipleSelect } from './multiple-select.js';
3634
export { MultipleSelectInstance } from './MultipleSelectInstance.js';

packages/multiple-select-vanilla/src/utils/domUtils.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,6 @@ export function toggleElement(elm?: HTMLElement | null, display?: boolean) {
252252
}
253253
}
254254

255-
export function toggleElementClass(elm?: HTMLElement | null, state?: boolean) {
256-
if (elm?.classList) {
257-
const adding = state === true || !elm.classList.contains('selected');
258-
const action = adding ? 'add' : 'remove';
259-
elm.classList[action]('selected');
260-
}
261-
}
262-
263255
/**
264256
* Get the Window Scroll top/left Position
265257
* @returns

packages/multiple-select-vanilla/src/utils/utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ export function removeUndefined(obj: any) {
115115
return obj;
116116
}
117117

118-
export function toCamelCase(str: string) {
119-
return str.replace(/[\W_]+(.)/g, (_match, char) => char.toUpperCase());
120-
}
121-
122118
export function removeDiacritics(str: string, customParser?: (t: string) => string): string {
123119
if (typeof str !== 'string') {
124120
return str;

0 commit comments

Comments
 (0)