Skip to content

Commit 9f66dd2

Browse files
committed
Remove path to_string
1 parent fa55ece commit 9f66dd2

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

analysis/src/CmtViewer.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ let dump ?filter rescript_json cmt_path =
9595
dump_module indent m
9696
and dump_module indent (module_ : Module.t) =
9797
match module_ with
98-
| Ident path -> Printf.printf "Module (Ident) %s\n" (Path.to_string path)
98+
| Ident path -> Printf.printf "Module (Ident) %s\n" (Path.name path)
9999
| Structure structure -> dump_structure indent structure
100100
| Constraint (m1, m2) ->
101101
dump_module indent m1;

compiler/ml/path.ml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,3 @@ let is_constructor_typath p =
104104
match constructor_typath p with
105105
| Regular _ -> false
106106
| _ -> true
107-
108-
let rec to_string = function
109-
| Pident id -> Ident.name id
110-
| Pdot (p, s, _) -> to_string p ^ "." ^ s
111-
| Papply (p1, p2) -> to_string p1 ^ "(" ^ to_string p2 ^ ")"

compiler/ml/path.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ type typath =
4242

4343
val constructor_typath : t -> typath
4444
val is_constructor_typath : t -> bool
45-
val to_string : t -> string

0 commit comments

Comments
 (0)