From c278332a1e975c98c21ee735cca9524f55f74697 Mon Sep 17 00:00:00 2001 From: Thomas Nield Date: Sat, 24 Jun 2017 15:11:23 -0500 Subject: [PATCH] changed my mind, we won't deprecate these --- src/main/kotlin/io/reactivex/rxkotlin/maybe.kt | 1 - src/main/kotlin/io/reactivex/rxkotlin/single.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/kotlin/io/reactivex/rxkotlin/maybe.kt b/src/main/kotlin/io/reactivex/rxkotlin/maybe.kt index b0a2944..e120519 100644 --- a/src/main/kotlin/io/reactivex/rxkotlin/maybe.kt +++ b/src/main/kotlin/io/reactivex/rxkotlin/maybe.kt @@ -6,7 +6,6 @@ import io.reactivex.Observable import java.util.concurrent.Callable import java.util.concurrent.Future -@Deprecated("This will be removed in a future release due to API confusion") fun T?.toMaybe(): Maybe = Maybe.create { s -> if (this != null) s.onSuccess(this); s.onComplete() } fun Future.toMaybe(): Maybe = Maybe.fromFuture(this) fun Callable.toMaybe(): Maybe = Maybe.fromCallable(this) diff --git a/src/main/kotlin/io/reactivex/rxkotlin/single.kt b/src/main/kotlin/io/reactivex/rxkotlin/single.kt index 9b7c494..bc19286 100644 --- a/src/main/kotlin/io/reactivex/rxkotlin/single.kt +++ b/src/main/kotlin/io/reactivex/rxkotlin/single.kt @@ -6,7 +6,6 @@ import io.reactivex.Single import java.util.concurrent.Callable import java.util.concurrent.Future -@Deprecated("This will be removed in a future release due to API confusion, use Single.just()") fun T.toSingle(): Single = Single.just(this) fun Future.toSingle(): Single = Single.fromFuture(this) fun Callable.toSingle(): Single = Single.fromCallable(this)