From 301ed202962efa9d682e3ebd922c1813f5572a24 Mon Sep 17 00:00:00 2001 From: Joe Vilches Date: Tue, 7 Nov 2023 09:57:04 -0800 Subject: [PATCH] Remove unused arg in calculateTree in gentest.js Summary: tsia Reviewed By: NickGerleman Differential Revision: D51050456 fbshipit-source-id: bd3ef113bd612f6d257b9adce5501f8e8bb32d26 --- gentest/gentest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gentest/gentest.js b/gentest/gentest.js index 48317bf8..3189c162 100755 --- a/gentest/gentest.js +++ b/gentest/gentest.js @@ -679,7 +679,7 @@ function getRoundedSize(node) { }; } -function calculateTree(root, roundToPixelGrid) { +function calculateTree(root) { const rootLayout = []; for (let i = 0; i < root.children.length; i++) { @@ -690,7 +690,7 @@ function calculateTree(root, roundToPixelGrid) { top: child.offsetTop + child.parentNode.clientTop, width: child.offsetWidth, height: child.offsetHeight, - children: calculateTree(child, roundToPixelGrid), + children: calculateTree(child), style: getYogaStyle(child), declaredStyle: child.style, rawStyle: child.getAttribute('style'),