Skip to content

Commit 027cee8

Browse files
committed
Driver: cleanup unnecessary changes
1 parent df626e0 commit 027cee8

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/driver/odoc_driver.ml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -582,15 +582,6 @@ let run libs verbose packages_dir odoc_dir odocl_dir html_dir stats nb_workers
582582
(fun () -> render_stats env nb_workers)
583583
in
584584

585-
(* List.iter *)
586-
(* (fun l -> *)
587-
(* if Astring.String.is_infix ~affix:"_odoc/./index.mld" l then *)
588-
(* Format.printf "%s\n" l) *)
589-
(* !Cmd_outputs.compile_output; *)
590-
(* List.iter *)
591-
(* (fun l -> *)
592-
(* if Astring.String.is_infix ~affix:"__driver" l then Format.printf "%s\n" l) *)
593-
(* !Cmd_outputs.link_output; *)
594585
Format.eprintf "Final stats: %a@.%!" Stats.pp_stats Stats.stats;
595586
Format.eprintf "Total time: %f@.%!" (Stats.total_time ());
596587
if stats then Stats.bench_results html_dir

src/html/link.ml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ module Path = struct
3737

3838
let as_filename ~is_flat (url : Url.Path.t) =
3939
let url_segs = for_linking ~is_flat url in
40-
let filename =
41-
match url_segs with
42-
| [] -> Fpath.v "./"
43-
| url_segs -> Fpath.(v @@ String.concat Fpath.dir_sep @@ url_segs)
44-
in
40+
let filename = Fpath.(v @@ String.concat Fpath.dir_sep @@ url_segs) in
4541
filename
4642
end
4743

0 commit comments

Comments
 (0)