File tree Expand file tree Collapse file tree 3 files changed +3
-23
lines changed Expand file tree Collapse file tree 3 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -224,19 +224,6 @@ let get_package_path_from_cmj
224
224
let add = Lam_module_ident.Hash_set. add
225
225
226
226
227
-
228
- (* let is_pure_module (id : Lam_module_ident.t) =
229
- match id.kind with
230
- | Runtime -> true
231
- | External _ -> false
232
- | Ml ->
233
- match Lam_module_ident.Hash.find_opt cached_tbl id with
234
- | Some (Visit {cmj_table = {pure}}) -> pure
235
- | Some _ -> assert false
236
- | None -> *)
237
-
238
-
239
-
240
227
(* Conservative interface *)
241
228
let is_pure_module (id : Lam_module_ident.t ) =
242
229
id.kind = Runtime ||
Original file line number Diff line number Diff line change @@ -96,10 +96,6 @@ val query_external_id_info :
96
96
string ->
97
97
ident_info
98
98
99
- val query_and_add_if_not_exist :
100
- Lam_module_ident .t ->
101
- found :(bool -> 'b ) ->
102
- 'b
103
99
104
100
val is_pure_module : Lam_module_ident .t -> bool
105
101
Original file line number Diff line number Diff line change @@ -107,12 +107,9 @@ let get_dependent_module_effect
107
107
(external_ids : Lam_module_ident.t list ) =
108
108
if maybe_pure = None then
109
109
let non_pure_module =
110
- Ext_list. find_first_not external_ids
111
- (fun id ->
112
- id.kind = Runtime ||
113
- Lam_compile_env. query_and_add_if_not_exist id
114
- ~found: (fun pure -> pure)
115
- ) in
110
+ Ext_list. find_first_not external_ids
111
+ Lam_compile_env. is_pure_module
112
+ in
116
113
Ext_option. map non_pure_module (fun x -> Lam_module_ident. name x)
117
114
else
118
115
maybe_pure
You can’t perform that action at this time.
0 commit comments