Skip to content

Commit f7230cc

Browse files
committed
remove unused type
1 parent 6864370 commit f7230cc

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

jscomp/ml/lambda.ml

-5
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,6 @@ and lambda_switch =
318318

319319

320320

321-
type program =
322-
{ module_ident : Ident.t;
323-
main_module_block_size : int;
324-
required_globals : Ident.Set.t;
325-
code : lambda }
326321

327322
(* This is actually a dummy value
328323
not necessary "()", it can be used as a place holder for module

jscomp/ml/lambda.mli

+1-6
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,7 @@ and lambda_switch =
321321
sw_names: switch_names option }
322322

323323

324-
type program =
325-
{ module_ident : Ident.t;
326-
main_module_block_size : int;
327-
required_globals : Ident.Set.t; (* Modules whose initializer side effects
328-
must occur before [code]. *)
329-
code : lambda }
324+
330325
(* Lambda code for the middle-end.
331326
* In the closure case the code is a sequence of assignments to a
332327
preallocated block of size [main_module_block_size] using

jscomp/ml/printlambda.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,4 +464,4 @@ let structured_constant = struct_const
464464

465465
let lambda = lam
466466

467-
let program ppf { code } = lambda ppf code
467+

jscomp/ml/printlambda.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ open Format
1919

2020
val structured_constant: formatter -> structured_constant -> unit
2121
val lambda: formatter -> lambda -> unit
22-
val program: formatter -> program -> unit
22+
2323
val primitive: formatter -> primitive -> unit
2424
val name_of_primitive : primitive -> string
2525
val value_kind : value_kind -> string

0 commit comments

Comments
 (0)