Skip to content

Commit 2d47106

Browse files
author
Aidan Lee
committed
Dead code removal
1 parent ce471f4 commit 2d47106

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

test/haxe/TestWeakHash.hx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,14 @@ class TestWeakHash extends Test
5252
Assert.isTrue(oddFound<=2, "Too many odd values retained " + oddFound);
5353
Assert.isTrue(valid>=expect && valid<expect+2, "WeakHash invalid range "+ expect + "..." + valid + "..." + (expect+2));
5454
}
55-
function deepCheckMap(inDepth:Int, map:WeakMap<WeakObjectData,Int>, expect:Int)
56-
{
57-
if (inDepth<1)
58-
checkMap(map,expect);
59-
else
60-
deepCheckMap(inDepth-1, map, expect);
61-
}
62-
63-
function deepClearRetained(inRecurse:Int)
64-
{
65-
if (inRecurse>0)
66-
deepClearRetained(inRecurse-1);
67-
else
68-
retained = [];
69-
}
7055

7156
public function test()
7257
{
7358
var map : WeakMap<WeakObjectData,Int> = null;
7459

7560
final sema = new sys.thread.Semaphore(0);
7661
sys.thread.Thread.create(() -> {
77-
map = createMapDeep(20,1000);
62+
map = createMap(1000);
7863
sema.release();
7964
});
8065
sema.acquire();

0 commit comments

Comments
 (0)