Skip to content

Commit

Permalink
Removed deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Apr 25, 2014
1 parent 3da9135 commit 943c544
Showing 1 changed file with 0 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1617,30 +1617,6 @@ public static <R> Observable<R> fromAction(Action0 action, R result) {
return fromAction(action, result, Schedulers.computation());
}

/**
* Return an Observable that calls the given function and emits its
* result when an Observer subscribes.
* <p>
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/fromFunc0.png">
* <p>
* The function is called on the default thread pool for computation.
*
* @param <R> the return type
* @param function the function to call on each subscription
* @return an Observable that calls the given function and emits its
* result when an Observer subscribes
* @see #start(rx.functions.Func0)
* @see #fromCallable(java.util.concurrent.Callable)
* @see <a href="https://github.com/Netflix/RxJava/wiki/Async-Operators#fromfunc0">RxJava Wiki: fromFunc0()</a>
*
* @deprecated Unnecessary now that Func0 extends Callable. Just call
* {@link #fromCallable(Callable)} instead.
*/
@Deprecated
public static <R> Observable<R> fromFunc0(Func0<? extends R> function) {
return fromCallable(function);
}

/**
* Return an Observable that calls the given Callable and emits its
* result or Exception when an Observer subscribes.
Expand All @@ -1654,7 +1630,6 @@ public static <R> Observable<R> fromFunc0(Func0<? extends R> function) {
* @return an Observable that calls the given Callable and emits its
* result or Exception when an Observer subscribes
* @see #start(rx.functions.Func0)
* @see #fromFunc0(rx.functions.Func0)
* @see <a href="https://github.com/Netflix/RxJava/wiki/Async-Operators#fromcallable">RxJava Wiki: fromCallable()</a>
*/
public static <R> Observable<R> fromCallable(Callable<? extends R> callable) {
Expand Down Expand Up @@ -1699,30 +1674,6 @@ public static <R> Observable<R> fromAction(Action0 action, R result, Scheduler s
return Observable.create(OperatorFromFunctionals.fromAction(action, result)).subscribeOn(scheduler);
}

/**
* Return an Observable that calls the given function and emits its
* result when an Observer subscribes.
* <p>
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/fromFunc0.s.png">
*
* @param <R> the return type
* @param function the function to call on each subscription
* @param scheduler the scheduler where the function is called and the
* result is emitted
* @return an Observable that calls the given function and emits its
* result when an Observer subscribes
* @see #start(rx.functions.Func0)
* @see #fromCallable(java.util.concurrent.Callable)
* @see <a href="https://github.com/Netflix/RxJava/wiki/Async-Operators#fromfunc0">RxJava Wiki: fromFunc0()</a>
*
* @deprecated Unnecessary now that Func0 extends Callable. Just call
* {@link #fromCallable(Callable, Scheduler)} instead.
*/
@Deprecated
public static <R> Observable<R> fromFunc0(Func0<? extends R> function, Scheduler scheduler) {
return fromCallable(function, scheduler);
}

/**
* Return an Observable that calls the given Callable and emits its
* result or Exception when an Observer subscribes.
Expand All @@ -1736,7 +1687,6 @@ public static <R> Observable<R> fromFunc0(Func0<? extends R> function, Scheduler
* @return an Observable that calls the given Callable and emits its
* result or Exception when an Observer subscribes
* @see #start(rx.functions.Func0)
* @see #fromFunc0(rx.functions.Func0)
* @see <a href="https://github.com/Netflix/RxJava/wiki/Async-Operators#fromcallable">RxJava Wiki: fromCallable()</a>
*/
public static <R> Observable<R> fromCallable(Callable<? extends R> callable, Scheduler scheduler) {
Expand Down

0 comments on commit 943c544

Please sign in to comment.