Skip to content

Commit 25e1f48

Browse files
committed
refactor(helpers): remove unneeded function
1 parent b51674d commit 25e1f48

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

core/src/utils/helpers.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -388,17 +388,6 @@ export const shallowEqualStringMap = (
388388
return true;
389389
};
390390

391-
export const getNextSiblingOfType = <T extends Element>(element: Element): T | null => {
392-
let sibling = element.nextSibling;
393-
while (sibling) {
394-
if (sibling.nodeType === Node.ELEMENT_NODE && (sibling as T) !== null) {
395-
return sibling as T;
396-
}
397-
sibling = sibling.nextSibling;
398-
}
399-
return null;
400-
};
401-
402391
/**
403392
* Checks input for usable number. Not NaN and not Infinite.
404393
*/

0 commit comments

Comments
 (0)