Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
fbc18228
Commit
fbc18228
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Extlib] remove unused and obsolete functions
parent
69efa5b2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libraries/stdlib/extlib.ml
+0
-4
0 additions, 4 deletions
src/libraries/stdlib/extlib.ml
src/libraries/stdlib/extlib.mli
+0
-6
0 additions, 6 deletions
src/libraries/stdlib/extlib.mli
with
0 additions
and
10 deletions
src/libraries/stdlib/extlib.ml
+
0
−
4
View file @
fbc18228
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/libraries/stdlib/extlib.mli
+
0
−
6
View file @
fbc18228
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment