Skip to content

Commit beb1ac1

Browse files
committed
remove Obj_empty_cst which is dead code
1 parent 0f05df9 commit beb1ac1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

jscomp/core/lam_compile_external_obj.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let assemble_obj_args (labels : External_arg_spec.obj_params) (args : J.express
4949
| {obj_arg_label = Label {name = label; cst = Some cst }} :: labels , args ->
5050
let accs, eff, assign = aux labels args in
5151
(label, Lam_compile_const.translate_arg_cst cst )::accs, eff, assign
52-
| {obj_arg_label = EmptyCst _ } :: rest , args -> assert false
52+
(* | {obj_arg_label = EmptyCst _ } :: rest , args -> assert false *)
5353
| {obj_arg_label = Empty }::labels, arg::args
5454
-> (* unit type*)
5555
let (accs, eff, assign) as r = aux labels args in

jscomp/syntax/external_arg_spec.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type label_noname =
4141
type label =
4242
| Label of {name : string ; cst : cst option }
4343
| Empty
44-
| EmptyCst of cst
44+
(* | EmptyCst of cst *)
4545
| Optional of {name : string }
4646
(* it will be ignored , side effect will be recorded *)
4747

@@ -106,7 +106,7 @@ let cst_json (loc : Location.t) s : cst =
106106
let cst_int i = Arg_int_lit i
107107
let cst_string s = Arg_string_lit s
108108
let empty_label = Empty
109-
let empty_lit s = EmptyCst s
109+
(* let empty_lit s = EmptyCst s *)
110110
let label name cst = Label {name ; cst}
111111
let optional name = Optional {name}
112112

jscomp/syntax/external_arg_spec.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type cst = private
3434
type label = private
3535
| Label of {name : string ; cst : cst option }
3636
| Empty
37-
| EmptyCst of cst
37+
(* | EmptyCst of cst *)
3838
| Optional of {name : string}
3939
(* it will be ignored , side effect will be recorded *)
4040

@@ -75,7 +75,7 @@ val cst_int : int -> cst
7575
val cst_string : string -> cst
7676

7777
val empty_label : label
78-
val empty_lit : cst -> label
78+
(* val empty_lit : cst -> label *)
7979
val label : string -> cst option -> label
8080
val optional : string -> label
8181
val empty_kind : attr -> obj_param

0 commit comments

Comments
 (0)