Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Nov 6, 2015
1 parent 8bc9465 commit 9ceec9d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 25 deletions.
7 changes: 0 additions & 7 deletions ml-proto/given/lib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ struct
let app f = function
| Some x -> f x
| None -> ()

let compare cmp_a o1 o2 =
match o1, o2 with
| None, None -> 0
| None, Some _ -> -1
| Some _, None -> 1
| Some x1, Some x2 -> cmp_a x1 x2
end

module Int =
Expand Down
1 change: 0 additions & 1 deletion ml-proto/given/lib.mli
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ sig
val get : 'a option -> 'a -> 'a
val map : ('a -> 'b) -> 'a option -> 'b option
val app : ('a -> unit) -> 'a option -> unit
val compare : ('a -> 'a -> int) -> 'a option -> 'a option -> int
end

module Int :
Expand Down
5 changes: 0 additions & 5 deletions ml-proto/host/parser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ let literal s t =
| Failure msg -> error s.at ("constant out of range: " ^ msg)
| _ -> error s.at "constant out of range"

let int32 s =
try I32.of_string s.it with
| Failure msg -> error s.at ("constant out of range: " ^ msg)
| _ -> error s.at "constant out of range"


(* Memory operands *)

Expand Down
6 changes: 0 additions & 6 deletions ml-proto/spec/check.ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ let import c x = lookup "import" c.imports x
let local c x = lookup "local" c.locals x
let label c x = lookup "label" c.labels x

module CaseSet = Set.Make(
struct
type t = I32.t option
let compare = Lib.Option.compare I32.compare_u
end)


(* Type comparison *)

Expand Down
6 changes: 0 additions & 6 deletions ml-proto/spec/int.ml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ sig
val ge_s : t -> t -> bool
val ge_u : t -> t -> bool

val compare_s : t -> t -> int
val compare_u : t -> t -> int

val of_int : int -> t
val of_string : string -> t
val to_string : t -> string
Expand Down Expand Up @@ -197,7 +194,4 @@ struct
let to_string = Rep.to_string

let of_int = Rep.of_int

let compare_s = compare
let compare_u x y = compare (Rep.add x Rep.min_int) (Rep.add y Rep.min_int)
end

0 comments on commit 9ceec9d

Please sign in to comment.