Skip to content

Commit 6187989

Browse files
committed
Not passing env as an argument
1 parent 0e585f7 commit 6187989

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

jscomp/core/lam_compile_env.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ type _ t =
161161
let query_and_add_if_not_exist
162162
(type u)
163163
(oid : Lam_module_ident.t)
164-
(env : u t) ~(found: bool -> _) =
164+
~(found: bool -> _) =
165165
match Lam_module_ident.Hash.find_opt cached_tbl oid with
166166
| None ->
167167
begin match oid.kind with
@@ -240,7 +240,7 @@ let add = Lam_module_ident.Hash_set.add
240240
(* Conservative interface *)
241241
let is_pure_module (id : Lam_module_ident.t) =
242242
id.kind = Runtime ||
243-
query_and_add_if_not_exist id No_env
243+
query_and_add_if_not_exist id
244244
~found:(fun x -> x)
245245

246246
let get_required_modules

jscomp/core/lam_compile_env.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ val query_external_id_info :
9898

9999
val query_and_add_if_not_exist :
100100
Lam_module_ident.t ->
101-
'a t ->
102-
found:(bool -> 'b) -> 'b
101+
found:(bool -> 'b) ->
102+
'b
103103

104104
val is_pure_module : Lam_module_ident.t -> bool
105105

jscomp/core/lam_stats_export.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ let get_dependent_module_effect
111111
(fun id ->
112112
id.kind = Runtime ||
113113
Lam_compile_env.query_and_add_if_not_exist id
114-
(Has_env meta.env )
115114
~found:(fun pure -> pure)
116115
) in
117116
Ext_option.map non_pure_module (fun x -> Lam_module_ident.name x)

0 commit comments

Comments
 (0)