[OCaml] Mobile-friendly clone of cgit.
Remove dead Tree.t.path field
The path field was always set to "/" and never read anywhere. Path tracking is handled externally via Tree.find_path.
lib/resolvers.ml
@@ -262,13 +262,12 @@
262
262
end
263
263
264
264
module Tree = struct
265
Removed:
type t = { hash : string; path : string; entries : Entry.t list }
265
Added:
type t = { hash : string; entries : Entry.t list }
266
266
267
267
let to_t tree =
268
268
let hash = Store.Value.Tree.hash tree |> Int.to_string in
269
Removed:
let path = "/" in
270
269
let entries = Store.Value.Tree.to_list tree |> List.map Entry.to_t in
271
Removed:
{ hash; path; entries }
270
Added:
{ hash; entries }
272
271
273
272
let of_id repo id =
274
273
let* store = store repo in