@@ -109,13 +109,11 @@ end = struct
109109 ; source : path option
110110 }
111111
112- module String_table = Hashtbl. Make (String )
113112 module Int_table = Hashtbl. Make (Int )
114113
115114 type t =
116115 { events_by_pc : event_and_source Int_table .t
117116 ; units : (string * string option , ml_unit ) Hashtbl .t
118- ; pos_fname_to_source : string String_table .t
119117 ; names : bool
120118 ; enabled : bool
121119 ; include_cmis : bool
@@ -137,7 +135,6 @@ end = struct
137135 let names = enabled || Config.Flag. pretty () in
138136 { events_by_pc = Int_table. create 17
139137 ; units = Hashtbl. create 17
140- ; pos_fname_to_source = String_table. create 17
141138 ; names
142139 ; enabled
143140 ; include_cmis
@@ -155,7 +152,7 @@ end = struct
155152 ~paths
156153 ~crcs
157154 ~orig
158- { events_by_pc; units; pos_fname_to_source; names; enabled; include_cmis = _ }
155+ { events_by_pc; units; names; enabled; include_cmis = _ }
159156 ev =
160157 let pos_fname =
161158 match ev.ev_loc.Location. loc_start.Lexing. pos_fname with
@@ -200,10 +197,6 @@ end = struct
200197 | None -> " NONE"
201198 | Some x -> x);
202199 let u = { module_name = ev_module; crc; source; paths } in
203- (match pos_fname, source with
204- | None , _ | _ , None -> ()
205- | Some pos_fname , Some source ->
206- String_table. add pos_fname_to_source pos_fname source);
207200 Hashtbl. add units (ev_module, pos_fname) u;
208201 u
209202 in
0 commit comments