Skip to content

Commit

Permalink
2.x: Remove unused methods in BasicFuseableObserver (#4637)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech authored and akarnokd committed Sep 29, 2016
1 parent 28ec1de commit 9461a70
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import io.reactivex.disposables.Disposable;
import io.reactivex.exceptions.Exceptions;
import io.reactivex.internal.disposables.DisposableHelper;
import io.reactivex.internal.functions.ObjectHelper;
import io.reactivex.internal.fuseable.QueueDisposable;
import io.reactivex.plugins.RxJavaPlugins;

Expand Down Expand Up @@ -91,17 +90,6 @@ protected void afterDownstream() {
// Convenience and state-aware methods
// -----------------------------------

/**
* Emits the value to the actual subscriber if {@link #done} is false.
* @param value the value to signal
*/
protected final void next(R value) {
if (done) {
return;
}
actual.onNext(value);
}

@Override
public void onError(Throwable t) {
if (done) {
Expand Down Expand Up @@ -131,16 +119,6 @@ public void onComplete() {
actual.onComplete();
}

/**
* Checks if the value is null and if so, throws a NullPointerException.
* @param value the value to check
* @param message the message to indicate the source of the value
* @return the value if not null
*/
protected final <V> V nullCheck(V value, String message) {
return ObjectHelper.requireNonNull(value, message);
}

/**
* Calls the upstream's QueueDisposable.requestFusion with the mode and
* saves the established mode in {@link #sourceMode}.
Expand Down

0 comments on commit 9461a70

Please sign in to comment.