Skip to content

Commit c278332

Browse files
committed
changed my mind, we won't deprecate these
1 parent 5e00f50 commit c278332

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/main/kotlin/io/reactivex/rxkotlin/maybe.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import io.reactivex.Observable
66
import java.util.concurrent.Callable
77
import java.util.concurrent.Future
88

9-
@Deprecated("This will be removed in a future release due to API confusion")
109
fun <T : Any> T?.toMaybe(): Maybe<T> = Maybe.create { s -> if (this != null) s.onSuccess(this); s.onComplete() }
1110
fun <T : Any> Future<T>.toMaybe(): Maybe<T> = Maybe.fromFuture(this)
1211
fun <T : Any> Callable<T>.toMaybe(): Maybe<T> = Maybe.fromCallable(this)

src/main/kotlin/io/reactivex/rxkotlin/single.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import io.reactivex.Single
66
import java.util.concurrent.Callable
77
import java.util.concurrent.Future
88

9-
@Deprecated("This will be removed in a future release due to API confusion, use Single.just()")
109
fun <T : Any> T.toSingle(): Single<T> = Single.just(this)
1110
fun <T : Any> Future<T>.toSingle(): Single<T> = Single.fromFuture(this)
1211
fun <T : Any> Callable<T>.toSingle(): Single<T> = Single.fromCallable(this)

0 commit comments

Comments
 (0)