Skip to content

Commit 72add8c

Browse files
committed
remove deprecated API
1 parent f5a25e5 commit 72add8c

File tree

100 files changed

+116
-360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+116
-360
lines changed

jscomp/others/belt_HashMap.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ let fromArray (type a) (type identity) arr ~id:(id:(a,identity) id) =
213213
done ;
214214
v
215215

216-
let ofArray = fromArray
217-
218216
let mergeMany h arr =
219217
let hash, eq = Belt_Id.getHashInternal ( C.hash h) , Belt_Id.getEqInternal (C.eq h) in
220218
let len = A.length arr in

jscomp/others/belt_HashMap.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,4 @@ val mergeMany: ('key, 'value, 'id ) t -> ('key * 'value) array -> unit
154154
val getBucketHistogram: _ t -> int array
155155
val logStats: _ t -> unit
156156

157-
val ofArray: ('key * 'value) array -> id:('key,'id) id -> ('key, 'value, 'id ) t
158-
[@@ocaml.deprecated "Use fromArray instead"]
159157

jscomp/others/belt_HashMapInt.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ let fromArray arr =
196196
done ;
197197
v
198198

199-
let ofArray = fromArray
200-
201199
(* TOOD: optimize heuristics for resizing *)
202200
let mergeMany h arr =
203201
let len = A.length arr in

jscomp/others/belt_HashMapInt.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,3 @@ val mergeMany: 'a t -> (key * 'a) array -> unit
4747
val getBucketHistogram: _ t -> int array
4848
val logStats: _ t -> unit
4949

50-
val ofArray: (key * 'a) array -> 'a t
51-
[@@ocaml.deprecated "Use fromArray instead"]

jscomp/others/belt_HashMapString.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ let fromArray arr =
196196
done ;
197197
v
198198

199-
let ofArray = fromArray
200-
201199
(* TOOD: optimize heuristics for resizing *)
202200
let mergeMany h arr =
203201
let len = A.length arr in

jscomp/others/belt_HashMapString.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,3 @@ val mergeMany: 'a t -> (key * 'a) array -> unit
4747
val getBucketHistogram: _ t -> int array
4848
val logStats: _ t -> unit
4949

50-
val ofArray: (key * 'a) array -> 'a t
51-
[@@ocaml.deprecated "Use fromArray instead"]

jscomp/others/belt_HashSet.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ let fromArray (type a) (type identity) arr ~(id:(a,identity) id) =
186186
done ;
187187
v
188188

189-
let ofArray = fromArray
190-
191189
let mergeMany h arr =
192190
let eq, hash = C.eq h, C.hash h in
193191
let len = A.length arr in

jscomp/others/belt_HashSet.mli

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ val logStats: _ t -> unit
116116

117117
val toArray: ('a,'id) t -> 'a array
118118

119-
val ofArray: 'a array -> id:('a,'id) id -> ('a,'id) t
120-
[@@ocaml.deprecated "Use fromArray instead"]
121-
122119
val fromArray: 'a array -> id:('a,'id) id -> ('a,'id) t
123120

124121
val mergeMany: ('a,'id) t -> 'a array -> unit

jscomp/others/belt_HashSetInt.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ let fromArray arr =
146146
done ;
147147
v
148148

149-
let ofArray = fromArray
150-
151149
(* TOOD: optimize heuristics for resizing *)
152150
let mergeMany h arr =
153151
let len = A.length arr in

jscomp/others/belt_HashSetInt.mli

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ val logStats: t -> unit
6666

6767
val toArray: t -> key array
6868

69-
val ofArray: key array -> t
70-
[@@ocaml.deprecated "Use fromArray instead"]
71-
7269
val fromArray: key array -> t
7370

7471
val mergeMany: t -> key array -> unit

0 commit comments

Comments
 (0)