Skip to content

Commit fe5da92

Browse files
committed
Refactor: no need for getUri.
1 parent 071f0de commit fe5da92

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

analysis/src/Commands.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ let references ~file ~line ~col ~extra ~package =
144144
| Some (_, loc) ->
145145
let allReferences =
146146
References.allReferencesForLoc ~package ~file ~extra
147-
~getUri:ProcessCmt.fileForUri
148147
~getExtra:(ProcessCmt.extraForModule ~package)
149148
loc
150149
in

analysis/src/References.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ let forLocalStamp ~package ~file ~extra ~getExtra stamp tip =
447447
in
448448
(file.uri, local) :: externals)
449449

450-
let allReferencesForLoc ~package ~getUri ~file ~extra ~getExtra loc =
450+
let allReferencesForLoc ~package ~file ~extra ~getExtra loc =
451451
match loc with
452452
| Explanation _
453453
| Typed (_, NotFound)
@@ -474,7 +474,7 @@ let allReferencesForLoc ~package ~getUri ~file ~extra ~getExtra loc =
474474
match ProcessCmt.exportedForTip ~env name tip with
475475
| None -> []
476476
| Some stamp -> (
477-
match getUri env.file.uri with
477+
match ProcessCmt.fileForUri env.file.uri with
478478
| Error _ -> []
479479
| Ok (file, extra) ->
480480
maybeLog

0 commit comments

Comments
 (0)