@@ -416,7 +416,6 @@ type hxb_writer = {
416
416
mutable chunk : Chunk .t ;
417
417
418
418
mutable minimal : bool ;
419
- mutable deps : module_def list ;
420
419
421
420
classes : (path ,tclass) Pool .t ;
422
421
enums : (path ,tenum) Pool .t ;
@@ -869,28 +868,20 @@ module HxbWriter = struct
869
868
870
869
(* References *)
871
870
872
- let maybe_add_sig_dep writer m =
873
- if m.m_path <> writer.current_module.m_path && not (List. exists (fun m' -> m'.m_path = m.m_path) writer.deps) then
874
- writer.deps < - m :: writer.deps
875
-
876
871
let write_class_ref writer (c : tclass ) =
877
872
let i = Pool. get_or_add writer.classes c.cl_path c in
878
- maybe_add_sig_dep writer c.cl_module;
879
873
Chunk. write_uleb128 writer.chunk i
880
874
881
875
let write_enum_ref writer (en : tenum ) =
882
876
let i = Pool. get_or_add writer.enums en.e_path en in
883
- maybe_add_sig_dep writer en.e_module;
884
877
Chunk. write_uleb128 writer.chunk i
885
878
886
879
let write_typedef_ref writer (td : tdef ) =
887
880
let i = Pool. get_or_add writer.typedefs td.t_path td in
888
- maybe_add_sig_dep writer td.t_module;
889
881
Chunk. write_uleb128 writer.chunk i
890
882
891
883
let write_abstract_ref writer (a : tabstract ) =
892
884
let i = Pool. get_or_add writer.abstracts a.a_path a in
893
- maybe_add_sig_dep writer a.a_module;
894
885
Chunk. write_uleb128 writer.chunk i
895
886
896
887
let write_tmono_ref writer (mono : tmono ) =
@@ -2282,12 +2273,6 @@ module HxbWriter = struct
2282
2273
l
2283
2274
end
2284
2275
2285
- let get_dependencies writer =
2286
- List. fold_left (fun deps mdep ->
2287
- let dep = {md_sign = mdep.m_extra.m_sign; md_path = mdep.m_path; md_kind = mdep.m_extra.m_kind; md_origin = MDepFromTyping } in
2288
- PMap. add mdep.m_id dep deps;
2289
- ) PMap. empty writer.deps
2290
-
2291
2276
let create config string_pool warn anon_id =
2292
2277
let cp,has_own_string_pool = match string_pool with
2293
2278
| None ->
@@ -2303,7 +2288,6 @@ let create config string_pool warn anon_id =
2303
2288
chunks = DynArray. create () ;
2304
2289
cp = cp;
2305
2290
has_own_string_pool;
2306
- deps = [] ;
2307
2291
minimal = false ;
2308
2292
docs = StringPool. create () ;
2309
2293
chunk = Obj. magic () ;
0 commit comments