Skip to content
Snippets Groups Projects
Commit fbc18228 authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[Extlib] remove unused and obsolete functions

parent 69efa5b2
No related branches found
No related tags found
No related merge requests found
......@@ -246,8 +246,6 @@ let array_existsi f a =
(** {2 Options} *)
(* ************************************************************************* *)
let opt_if b v = if b then None else Some v
let opt_fold f o b =
match o with
| None -> b
......@@ -271,8 +269,6 @@ let the ?exn = function
end
| Some x -> x
let find_or_none f v = try Some(f v) with Not_found -> None
let opt_equal f v1 v2 = match v1, v2 with
| None, None -> true
| Some _, None | None, Some _ -> false
......
......@@ -195,10 +195,6 @@ val array_existsi: (int -> 'a -> bool) -> 'a array -> bool
(** {2 Options} *)
(* ************************************************************************* *)
val opt_if: bool -> 'a -> 'a option
(** [opt_if cond v] returns [Some v] if [cond] is [true] and
[None] otherwise *)
val opt_fold: ('a -> 'b -> 'b) -> 'a option -> 'b -> 'b
(** @since Oxygen-20120901 *)
......@@ -224,8 +220,6 @@ val the: ?exn:exn -> 'a option -> 'a
@modify Magnesium-20151001 add optional argument [exn]
@plugin development guide *)
val find_or_none: ('a -> 'b) -> 'a -> 'b option
val opt_equal : ('a -> 'a -> bool) -> 'a option -> 'a option -> bool
val opt_compare : ('a -> 'a -> int) -> 'a option -> 'a option -> int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment