Skip to content

Commit bc90fe4

Browse files
committed
remove unused
1 parent 15b6eca commit bc90fe4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

jscomp/ml/variant_coercion.ml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
(* TODO: Improve error messages? Say why we can't coerce. *)
22

3-
let check_constructors (constructors : Types.constructor_declaration list) check
4-
=
5-
List.for_all
6-
(fun (c : Types.constructor_declaration) ->
7-
check c.cd_args (Ast_untagged_variants.process_tag_type c.cd_attributes))
8-
constructors
9-
103
(* Right now we only allow coercing to primitives string/int/float *)
114
let can_coerce_path (path : Path.t) =
125
Path.same path Predef.path_string

0 commit comments

Comments
 (0)