@@ -55,7 +55,6 @@ module File = struct
55
55
| Ok psuf -> Fpath. (normalize @@ (directory // psuf))
56
56
57
57
let to_string = Fpath. to_string
58
- let segs = Fpath. segs
59
58
60
59
let of_string s =
61
60
match Fpath. of_string s with
@@ -124,16 +123,6 @@ module File = struct
124
123
| [] -> invalid_arg " Fs.File.of_segs"
125
124
| "" :: rest -> of_segs_tl (Fpath. v " /" ) rest
126
125
| first :: rest -> of_segs_tl (Fpath. v first) rest
127
-
128
- let append_segs path segs = of_segs_tl path segs
129
-
130
- module Table = Hashtbl. Make (struct
131
- type nonrec t = t
132
-
133
- let equal = Fpath. equal
134
-
135
- let hash = Hashtbl. hash
136
- end )
137
126
end
138
127
139
128
module Directory = struct
@@ -145,20 +134,6 @@ module Directory = struct
145
134
146
135
let append = Fpath. append
147
136
148
- let make_path p name =
149
- match Fpath. of_string name with
150
- | Error _ as e -> e
151
- | Ok psuf -> Ok Fpath. (normalize @@ to_dir_path @@ (p // psuf))
152
-
153
- let reach_from ~dir path =
154
- match make_path dir path with
155
- | Error (`Msg e ) -> invalid_arg (" Odoc.Fs.Directory.create: " ^ e)
156
- | Ok path ->
157
- let pstr = Fpath. to_string path in
158
- if Sys. file_exists pstr && not (Sys. is_directory pstr) then
159
- invalid_arg " Odoc.Fs.Directory.create: not a directory" ;
160
- path
161
-
162
137
let contains ~parentdir f = Fpath. is_rooted ~root: parentdir f
163
138
164
139
let compare = Fpath. compare
@@ -206,12 +181,4 @@ module Directory = struct
206
181
in
207
182
try Ok (fold_files_rec ?ext f acc d)
208
183
with Stop_iter (`Msg _ as e ) -> Error e
209
-
210
- module Table = Hashtbl. Make (struct
211
- type nonrec t = t
212
-
213
- let equal = Fpath. equal
214
-
215
- let hash = Hashtbl. hash
216
- end )
217
184
end
0 commit comments