Skip to content

Commit bf89dee

Browse files
committed
Remove Value.compare
it wasn't used Signed-off-by: Rudi Grinberg <[email protected]>
1 parent bf895fd commit bf89dee

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/value.ml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@ let sexp_of_t =
1414

1515
let string_of_path ~dir p = Path.reach ~from:dir p
1616

17-
let compare x y =
18-
match x, y with
19-
| String x, String y -> String.compare x y
20-
| Path x, Path y -> Path.compare x y
21-
| _ , _ ->
22-
Exn.code_error "Value.compare"
23-
[ "x", sexp_of_t x
24-
; "y", sexp_of_t y
25-
]
26-
2717
let to_string t ~dir =
2818
match t with
2919
| String s -> s

src/value.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type t =
55
| Dir of Path.t
66
| Path of Path.t
77

8-
val compare : t -> t -> Ordering.t
8+
val sexp_of_t : t Sexp.To_sexp.t
99

1010
val to_string : t -> dir:Path.t -> string
1111

0 commit comments

Comments
 (0)