Skip to content

Commit 943c544

Browse files
committed
Removed deprecated API
1 parent 3da9135 commit 943c544

File tree

1 file changed

+0
-50
lines changed
  • rxjava-contrib/rxjava-async-util/src/main/java/rx/util/async

1 file changed

+0
-50
lines changed

rxjava-contrib/rxjava-async-util/src/main/java/rx/util/async/Async.java

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,30 +1617,6 @@ public static <R> Observable<R> fromAction(Action0 action, R result) {
16171617
return fromAction(action, result, Schedulers.computation());
16181618
}
16191619

1620-
/**
1621-
* Return an Observable that calls the given function and emits its
1622-
* result when an Observer subscribes.
1623-
* <p>
1624-
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/fromFunc0.png">
1625-
* <p>
1626-
* The function is called on the default thread pool for computation.
1627-
*
1628-
* @param <R> the return type
1629-
* @param function the function to call on each subscription
1630-
* @return an Observable that calls the given function and emits its
1631-
* result when an Observer subscribes
1632-
* @see #start(rx.functions.Func0)
1633-
* @see #fromCallable(java.util.concurrent.Callable)
1634-
* @see <a href="https://github.com/Netflix/RxJava/wiki/Async-Operators#fromfunc0">RxJava Wiki: fromFunc0()</a>
1635-
*
1636-
* @deprecated Unnecessary now that Func0 extends Callable. Just call
1637-
* {@link #fromCallable(Callable)} instead.
1638-
*/
1639-
@Deprecated
1640-
public static <R> Observable<R> fromFunc0(Func0<? extends R> function) {
1641-
return fromCallable(function);
1642-
}
1643-
16441620
/**
16451621
* Return an Observable that calls the given Callable and emits its
16461622
* result or Exception when an Observer subscribes.
@@ -1654,7 +1630,6 @@ public static <R> Observable<R> fromFunc0(Func0<? extends R> function) {
16541630
* @return an Observable that calls the given Callable and emits its
16551631
* result or Exception when an Observer subscribes
16561632
* @see #start(rx.functions.Func0)
1657-
* @see #fromFunc0(rx.functions.Func0)
16581633
* @see <a href="https://github.com/Netflix/RxJava/wiki/Async-Operators#fromcallable">RxJava Wiki: fromCallable()</a>
16591634
*/
16601635
public static <R> Observable<R> fromCallable(Callable<? extends R> callable) {
@@ -1699,30 +1674,6 @@ public static <R> Observable<R> fromAction(Action0 action, R result, Scheduler s
16991674
return Observable.create(OperatorFromFunctionals.fromAction(action, result)).subscribeOn(scheduler);
17001675
}
17011676

1702-
/**
1703-
* Return an Observable that calls the given function and emits its
1704-
* result when an Observer subscribes.
1705-
* <p>
1706-
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/fromFunc0.s.png">
1707-
*
1708-
* @param <R> the return type
1709-
* @param function the function to call on each subscription
1710-
* @param scheduler the scheduler where the function is called and the
1711-
* result is emitted
1712-
* @return an Observable that calls the given function and emits its
1713-
* result when an Observer subscribes
1714-
* @see #start(rx.functions.Func0)
1715-
* @see #fromCallable(java.util.concurrent.Callable)
1716-
* @see <a href="https://github.com/Netflix/RxJava/wiki/Async-Operators#fromfunc0">RxJava Wiki: fromFunc0()</a>
1717-
*
1718-
* @deprecated Unnecessary now that Func0 extends Callable. Just call
1719-
* {@link #fromCallable(Callable, Scheduler)} instead.
1720-
*/
1721-
@Deprecated
1722-
public static <R> Observable<R> fromFunc0(Func0<? extends R> function, Scheduler scheduler) {
1723-
return fromCallable(function, scheduler);
1724-
}
1725-
17261677
/**
17271678
* Return an Observable that calls the given Callable and emits its
17281679
* result or Exception when an Observer subscribes.
@@ -1736,7 +1687,6 @@ public static <R> Observable<R> fromFunc0(Func0<? extends R> function, Scheduler
17361687
* @return an Observable that calls the given Callable and emits its
17371688
* result or Exception when an Observer subscribes
17381689
* @see #start(rx.functions.Func0)
1739-
* @see #fromFunc0(rx.functions.Func0)
17401690
* @see <a href="https://github.com/Netflix/RxJava/wiki/Async-Operators#fromcallable">RxJava Wiki: fromCallable()</a>
17411691
*/
17421692
public static <R> Observable<R> fromCallable(Callable<? extends R> callable, Scheduler scheduler) {

0 commit comments

Comments
 (0)