Skip to content

Commit 55c8ae0

Browse files
committed
fix: remove unused variables
1 parent 85893bd commit 55c8ae0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/render/drawTree.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function renderTree(rootNode: TreeNode, canvasEle: HTMLCanvasElement | null) {
1313
canvasEle.height = windowHeight;
1414
}
1515

16-
const { nodeContainerHeight, nodeContainersWidth } = getTreeHeightWidth(rootNode);
16+
const { nodeContainersWidth } = getTreeHeightWidth(rootNode);
1717

1818
const windowCenter = windowWidth / 2;
1919
const nodeContainerWidthCenter = nodeContainersWidth / 2;
@@ -31,11 +31,10 @@ function getTreeHeightWidth(node: TreeNode) {
3131
const heightOfTree = node.getHeight();
3232
const maxLeafNodeAtLlevel = Math.pow(2, heightOfTree);
3333

34-
const nodeContainerHeight = heightOfTree * CONFIG.HEIGHT_SPACING;
34+
// const nodeContainerHeight = heightOfTree * CONFIG.HEIGHT_SPACING;
3535
const nodeContainersWidth = maxLeafNodeAtLlevel * CONFIG.WIDTH_SPACING;
3636

3737
return {
38-
nodeContainerHeight,
3938
nodeContainersWidth
4039
};
4140
}

0 commit comments

Comments
 (0)