Skip to content
Snippets Groups Projects
Commit f390f8b4 authored by Igor Markin's avatar Igor Markin
Browse files

Remove unused code

parent 898b2bb5
Branches
Tags
No related merge requests found
......@@ -97,21 +97,6 @@ export const pruneHtmlNode = (node: Node): boolean => {
return false;
};
export const normalizeBodyAttributes = (
node: Node,
cleanupElementAttributes: (element: HTMLElement) => void
): void => {
if (node.nodeType === ELEMENT_NODE) {
cleanupElementAttributes(node as HTMLElement);
}
let child = node.firstChild;
while (child) {
normalizeBodyAttributes(child as HTMLElement, cleanupElementAttributes);
child = child.nextSibling;
}
};
export const printHtmlChildren = (node: Node, depth: number): string => {
let child = node.firstChild;
if (!child) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment