[OCaml] Mobile-friendly clone of cgit.
Remove unused Repo.has_readme
This function was never called. The readme handler uses Repo.readme directly, which already handles the not-found case.
lib/resolvers.ml
@@ -608,10 +608,6 @@
608
608
| _ -> Lwt_result.fail @@ `Msg ("No tree or blob matches id " ^ id)
609
609
610
610
module Repo = struct
611
Removed:
let has_readme repo =
612
Removed:
let* tree = Tree.head repo in
613
Removed:
Lwt_result.return @@ List.exists Entry.is_readme tree.entries
614
Removed:
615
611
let readme repo =
616
612
let* tree = Tree.head repo in
617
613
match List.find_opt Entry.is_readme tree.entries with