diff --git a/src/HTMLNormalizer/HTMLNormalizer.ts b/src/HTMLNormalizer/HTMLNormalizer.ts
index b58b574af7b95ece641c341d749d1fc80afb7fae..2e043278e88e2fd7f650c8e1d5b37dd626b94dad 100644
--- a/src/HTMLNormalizer/HTMLNormalizer.ts
+++ b/src/HTMLNormalizer/HTMLNormalizer.ts
@@ -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) {