Skip to content

Commit ff39159

Browse files
committed
Remove Option.maybe
We're doing breaking changes already, lets clean this up
1 parent ac33c85 commit ff39159

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/FsToolkit.ErrorHandling/Option.fs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,25 +121,6 @@ module Option =
121121
|> ofNull
122122
| None -> None
123123

124-
/// <summary>
125-
/// Returns result of running <paramref name="onSome"/> if it is <c>Some</c>, otherwise returns result of running <paramref name="onNone"/>
126-
/// </summary>
127-
/// <param name="onNone">The function to run if <paramref name="input"/> is <c>None</c></param>
128-
/// <param name="onSome">The function to run if <paramref name="input"/> is <c>Some</c></param>
129-
/// <param name="input">The input option.</param>
130-
/// <returns>
131-
/// The result of running <paramref name="onSome"/> if the input is <c>Some</c>, else returns result of running <paramref name="onNone"/>.
132-
/// </returns>
133-
[<System.Obsolete("Call Option.either instead.", true)>]
134-
let inline maybe
135-
([<InlineIfLambda>] onNone: unit -> 'output)
136-
([<InlineIfLambda>] onSome: 'a -> 'output)
137-
(input: 'a option)
138-
: 'output =
139-
match input with
140-
| Some x -> onSome x
141-
| None -> onNone ()
142-
143124
/// <summary>
144125
/// Returns result of running <paramref name="onSome"/> if it is <c>Some</c>, otherwise returns result of running <paramref name="onNone"/>
145126
/// </summary>

0 commit comments

Comments
 (0)