Skip to content

Commit 13252a9

Browse files
committed
CCHashtbl(cleanup): remove function always present on 4.08
1 parent 1de3036 commit 13252a9

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

src/core/CCHashtbl.ml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,6 @@ module type S = sig
189189
using [f] in an unspecified order.
190190
@since 3.3 *)
191191
192-
val add_seq : 'a t -> (key * 'a) Seq.t -> unit
193-
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
194-
Renamed from [add_std_seq] since 3.0.
195-
@since 3.0 *)
196-
197192
val add_seq_with :
198193
f:(key -> 'a -> 'a -> 'a) -> 'a t -> (key * 'a) Seq.t -> unit
199194
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
@@ -211,11 +206,6 @@ module type S = sig
211206
using [f] in an unspecified order.
212207
@since 3.3 *)
213208
214-
val of_seq : (key * 'a) Seq.t -> 'a t
215-
(** From the given bindings, added in order.
216-
Renamed from [of_std_seq] since 3.0.
217-
@since 3.0 *)
218-
219209
val of_seq_with : f:(key -> 'a -> 'a -> 'a) -> (key * 'a) Seq.t -> 'a t
220210
(** From the given bindings, added in order.
221211
If a key occurs multiple times in the input, the values are combined
@@ -349,8 +339,6 @@ module Make (X : Hashtbl.HashedType) :
349339
| exception Not_found -> add tbl k v
350340
| v2 -> replace tbl k (f k v v2))
351341
352-
let add_seq tbl seq = Seq.iter (fun (k, v) -> add tbl k v) seq
353-
354342
let add_seq_with ~f tbl seq =
355343
Seq.iter
356344
(fun (k, v) ->
@@ -366,7 +354,6 @@ module Make (X : Hashtbl.HashedType) :
366354
tbl
367355
368356
let of_iter i = mk_tbl_ add_iter i
369-
let of_seq i = mk_tbl_ add_seq i
370357
let of_iter_with ~f i = mk_tbl_ (add_iter_with ~f) i
371358
let of_seq_with ~f i = mk_tbl_ (add_seq_with ~f) i
372359
let add_iter_count tbl i = i (fun k -> incr tbl k)

src/core/CCHashtbl.mli

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,6 @@ module type S = sig
253253
using [f] in an unspecified order.
254254
@since 3.3 *)
255255

256-
val add_seq : 'a t -> (key * 'a) Seq.t -> unit
257-
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
258-
Renamed from [add_std_seq] since 3.0.
259-
@since 3.0 *)
260-
261256
val add_seq_with :
262257
f:(key -> 'a -> 'a -> 'a) -> 'a t -> (key * 'a) Seq.t -> unit
263258
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
@@ -275,11 +270,6 @@ module type S = sig
275270
using [f] in an unspecified order.
276271
@since 3.3 *)
277272

278-
val of_seq : (key * 'a) Seq.t -> 'a t
279-
(** From the given bindings, added in order.
280-
Renamed from [of_std_seq] since 3.0.
281-
@since 3.0 *)
282-
283273
val of_seq_with : f:(key -> 'a -> 'a -> 'a) -> (key * 'a) Seq.t -> 'a t
284274
(** From the given bindings, added in order.
285275
If a key occurs multiple times in the input, the values are combined

0 commit comments

Comments
 (0)