From c745c6fb4e8ff74934821594b27813aeefc90449 Mon Sep 17 00:00:00 2001 From: irontaek <13810291+irontaek@users.noreply.github.com> Date: Wed, 7 Oct 2026 21:48:31 +0900 Subject: [PATCH] Remove the unused `newAncestors` set in `XFAObject[_applyPrototype]` Its two consumers switched to `ancestors` in 11573ddd1 (XFA - Implement usehref support), so the set has been built and never read since. --- src/core/xfa/xfa_object.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/xfa/xfa_object.js b/src/core/xfa/xfa_object.js index e2ae8d6104dd4..41bc022ce7fde 100644 --- a/src/core/xfa/xfa_object.js +++ b/src/core/xfa/xfa_object.js @@ -560,9 +560,6 @@ class XFAObject { this[$content] = proto[$content]; } - const newAncestors = new Set(ancestors); - newAncestors.add(proto); - for (const unsetAttrName of this[_getUnsetAttributes]( proto[_setAttributes] )) {