Skip to content

Commit 1689705

Browse files
authored
Merge pull request #57 from rcardin/56-remove-deprecated-functions
Removed deprecated functions
2 parents ae5a867 + f164a9c commit 1689705

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

core/src/main/scala/in/rcard/raise4s/Builders.scala

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
package in.rcard.raise4s
22

3-
import Bind.value
4-
53
import scala.util.{Failure, Success, Try}
64

75
private[raise4s] inline def _either[Error, A](inline block: Raise[Error] ?=> A): Either[Error, A] = {
86
Raise.fold(block, error => Left(error), value => Right(value))
97
}
108

11-
object RaiseEitherPredef:
12-
extension [Error, A](either: Either[Error, A])(using r: Raise[Error])
13-
@deprecated("Use the extension method 'value' defined in Bind scope instead", "0.0.5")
14-
def bind(): A = either.value
15-
16-
object RaiseOptionPredef:
17-
extension [A](option: Option[A])(using optionRaise: Raise[None.type])
18-
@deprecated("Use the extension method 'value' defined in Bind scope instead", "0.0.5")
19-
def bind(): A = option.value
20-
219
private[raise4s] inline def _option[A](inline block: Raise[None.type] ?=> A): Option[A] = {
2210
Raise.fold(
2311
block,
@@ -26,11 +14,6 @@ private[raise4s] inline def _option[A](inline block: Raise[None.type] ?=> A): Op
2614
)
2715
}
2816

29-
object RaiseTryPredef:
30-
extension [A](tryValue: Try[A])(using tryRaise: Raise[Throwable])
31-
@deprecated("Use the extension method 'value' defined in Bind scope instead", "0.0.5")
32-
def bind(): A = tryValue.value
33-
3417
private[raise4s] inline def _asTry[A](inline block: Raise[Throwable] ?=> A): Try[A] = {
3518
Raise.fold(
3619
block,

0 commit comments

Comments
 (0)