Skip to content

Commit

Permalink
chore(Source_tree): remove dead code (#7528)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg authored Apr 13, 2023
1 parent 06e2fe1 commit 05e0bc1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/dune_rules/source_tree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,6 @@ module Dir0 = struct
Filename.Map.foldi (sub_dirs t) ~init:Filename.Set.empty ~f:(fun s _ acc ->
Filename.Set.add acc s)

let sub_dir_paths t =
String.Map.foldi (sub_dirs t) ~init:Path.Source.Set.empty ~f:(fun s _ acc ->
Path.Source.Set.add acc (Path.Source.relative t.path s))

let sub_dir_as_t (s : sub_dir) =
let+ t = Memo.Cell.read s.sub_dir_as_t in
(Option.value_exn t).dir
Expand Down
2 changes: 0 additions & 2 deletions src/dune_rules/source_tree.mli
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ module Dir : sig
-> Outcome.t M.t
end

val sub_dir_paths : t -> Path.Source.Set.t

val sub_dir_names : t -> Filename.Set.t

val status : t -> Sub_dirs.Status.t
Expand Down

0 comments on commit 05e0bc1

Please sign in to comment.