Skip to content

Commit

Permalink
Remove Value.compare
Browse files Browse the repository at this point in the history
it wasn't used

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
rgrinberg committed Jul 31, 2018
1 parent bf895fd commit bf89dee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions src/value.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ let sexp_of_t =

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

let compare x y =
match x, y with
| String x, String y -> String.compare x y
| Path x, Path y -> Path.compare x y
| _ , _ ->
Exn.code_error "Value.compare"
[ "x", sexp_of_t x
; "y", sexp_of_t y
]

let to_string t ~dir =
match t with
| String s -> s
Expand Down
2 changes: 1 addition & 1 deletion src/value.mli
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type t =
| Dir of Path.t
| Path of Path.t

val compare : t -> t -> Ordering.t
val sexp_of_t : t Sexp.To_sexp.t

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

Expand Down

0 comments on commit bf89dee

Please sign in to comment.