Skip to content

Commit cfa75f5

Browse files
panglesdjonludlam
authored andcommitted
Remove useless call to add_parameter
Signed-off-by: Paul-Elliot <[email protected]>
1 parent d49a7ed commit cfa75f5

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/loader/implementation.ml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -292,28 +292,12 @@ module Analysis = struct
292292
inner
293293

294294
and module_expr env parent mexpr =
295-
let open Odoc_model.Names in
296295
match mexpr.mod_desc with
297296
| Tmod_ident _ -> []
298297
| Tmod_structure str ->
299298
let sg = structure env parent str in
300299
sg
301-
| Tmod_functor (parameter, res) ->
302-
let env =
303-
match parameter with
304-
| Unit -> env
305-
| Named (id_opt, _, _arg) ->
306-
let env =
307-
match id_opt with
308-
| Some id ->
309-
env_wrap
310-
(Ident_env.add_parameter parent id
311-
(ModuleName.of_ident id))
312-
env
313-
| None -> env
314-
in
315-
env
316-
in
300+
| Tmod_functor (_, res) ->
317301
let res =
318302
module_expr env (Odoc_model.Paths.Identifier.Mk.result parent) res
319303
in

0 commit comments

Comments
 (0)