@@ -109,13 +109,11 @@ end = struct
109
109
; source : path option
110
110
}
111
111
112
- module String_table = Hashtbl. Make (String )
113
112
module Int_table = Hashtbl. Make (Int )
114
113
115
114
type t =
116
115
{ events_by_pc : event_and_source Int_table .t
117
116
; units : (string * string option , ml_unit ) Hashtbl .t
118
- ; pos_fname_to_source : string String_table .t
119
117
; names : bool
120
118
; enabled : bool
121
119
; include_cmis : bool
@@ -137,7 +135,6 @@ end = struct
137
135
let names = enabled || Config.Flag. pretty () in
138
136
{ events_by_pc = Int_table. create 17
139
137
; units = Hashtbl. create 17
140
- ; pos_fname_to_source = String_table. create 17
141
138
; names
142
139
; enabled
143
140
; include_cmis
@@ -155,7 +152,7 @@ end = struct
155
152
~paths
156
153
~crcs
157
154
~orig
158
- { events_by_pc; units; pos_fname_to_source; names; enabled; include_cmis = _ }
155
+ { events_by_pc; units; names; enabled; include_cmis = _ }
159
156
ev =
160
157
let pos_fname =
161
158
match ev.ev_loc.Location. loc_start.Lexing. pos_fname with
@@ -200,10 +197,6 @@ end = struct
200
197
| None -> " NONE"
201
198
| Some x -> x);
202
199
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);
207
200
Hashtbl. add units (ev_module, pos_fname) u;
208
201
u
209
202
in
0 commit comments