Skip to content

Commit 09d9535

Browse files
committed
remove dead code
1 parent 7239dc2 commit 09d9535

File tree

5 files changed

+0
-180
lines changed

5 files changed

+0
-180
lines changed

jscomp/ext/hash_gen.ml

-20
Original file line numberDiff line numberDiff line change
@@ -249,23 +249,3 @@ end
249249

250250

251251

252-
#if 0
253-
let rec bucket_length accu = function
254-
| Empty -> accu
255-
| Cons l -> bucket_length (accu + 1) l.next
256-
257-
let stats h =
258-
let mbl =
259-
Ext_array.fold_left h.data 0 (fun m b -> max m (bucket_length 0 b)) in
260-
let histo = Array.make (mbl + 1) 0 in
261-
Ext_array.iter h.data
262-
(fun b ->
263-
let l = bucket_length 0 b in
264-
histo.(l) <- histo.(l) + 1)
265-
;
266-
{Hash.
267-
num_bindings = h.size;
268-
num_buckets = Array.length h.data;
269-
max_bucket_length = mbl;
270-
bucket_histogram = histo }
271-
#end

jscomp/ext/hash_set_gen.ml

-21
Original file line numberDiff line numberDiff line change
@@ -178,24 +178,3 @@ sig
178178
end
179179

180180

181-
#if 0
182-
let rec bucket_length accu = function
183-
| Empty -> accu
184-
| Cons l -> bucket_length (accu + 1) l.next
185-
186-
187-
188-
let stats h =
189-
let mbl =
190-
Ext_array.fold_left h.data 0 (fun m b -> max m (bucket_length 0 b)) in
191-
let histo = Array.make (mbl + 1) 0 in
192-
Ext_array.iter h.data
193-
(fun b ->
194-
let l = bucket_length 0 b in
195-
histo.(l) <- histo.(l) + 1)
196-
;
197-
{Hashtbl.num_bindings = h.size;
198-
num_buckets = Array.length h.data;
199-
max_bucket_length = mbl;
200-
bucket_histogram = histo }
201-
#end

jscomp/main/ounit_tests_main.ml

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ let suites =
2828
Ounit_bal_tree_tests.suites;
2929
Ounit_hash_stubs_test.suites;
3030
Ounit_map_tests.suites;
31-
Ounit_ordered_hash_set_tests.suites;
3231
Ounit_hashtbl_tests.suites;
3332
Ounit_string_tests.suites;
3433
Ounit_topsort_tests.suites;

jscomp/ounit_tests/ounit_hash_set_tests.ml

-13
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,6 @@ let suites =
9191

9292
end
9393
;
94-
#if 0
95-
__LOC__ >:: begin fun _ ->
96-
let v = Ordered_hash_set_string.create 3 in
97-
for i = 0 to 10 do
98-
Ordered_hash_set_string.add v (string_of_int i)
99-
done;
100-
for i = 100 downto 2 do
101-
Ordered_hash_set_string.add v (string_of_int i)
102-
done;
103-
OUnit.assert_equal (Ordered_hash_set_string.to_sorted_array v )
104-
const_tbl
105-
end;
106-
#end
10794
__LOC__ >:: begin fun _ ->
10895
let duplicate arr =
10996
let len = Array.length arr in

jscomp/ounit_tests/ounit_ordered_hash_set_tests.ml

-125
This file was deleted.

0 commit comments

Comments
 (0)