Skip to content

Commit 52dc52d

Browse files
committed
testing: removing unused variable
1 parent 306b4df commit 52dc52d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/test/java/com/thealgorithms/datastructures/disjointsetunion/DisjointSetUnionTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ public void testPathCompression() {
117117
dsu.unionSets(node1, node2);
118118
dsu.unionSets(node2, node3);
119119

120-
// Before path compression, parent of node3 might not be node1 directly
121-
Node<Integer> parentBefore = node3.parent;
122-
123120
// After findSet, path compression should update parent to root directly
124121
Node<Integer> root = dsu.findSet(node3);
125122
assertEquals(root, node1);

0 commit comments

Comments
 (0)