Skip to content

Commit 9461a70

Browse files
vanniktechakarnokd
authored andcommitted
2.x: Remove unused methods in BasicFuseableObserver (#4637)
1 parent 28ec1de commit 9461a70

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/main/java/io/reactivex/internal/observers/BasicFuseableObserver.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import io.reactivex.disposables.Disposable;
1818
import io.reactivex.exceptions.Exceptions;
1919
import io.reactivex.internal.disposables.DisposableHelper;
20-
import io.reactivex.internal.functions.ObjectHelper;
2120
import io.reactivex.internal.fuseable.QueueDisposable;
2221
import io.reactivex.plugins.RxJavaPlugins;
2322

@@ -91,17 +90,6 @@ protected void afterDownstream() {
9190
// Convenience and state-aware methods
9291
// -----------------------------------
9392

94-
/**
95-
* Emits the value to the actual subscriber if {@link #done} is false.
96-
* @param value the value to signal
97-
*/
98-
protected final void next(R value) {
99-
if (done) {
100-
return;
101-
}
102-
actual.onNext(value);
103-
}
104-
10593
@Override
10694
public void onError(Throwable t) {
10795
if (done) {
@@ -131,16 +119,6 @@ public void onComplete() {
131119
actual.onComplete();
132120
}
133121

134-
/**
135-
* Checks if the value is null and if so, throws a NullPointerException.
136-
* @param value the value to check
137-
* @param message the message to indicate the source of the value
138-
* @return the value if not null
139-
*/
140-
protected final <V> V nullCheck(V value, String message) {
141-
return ObjectHelper.requireNonNull(value, message);
142-
}
143-
144122
/**
145123
* Calls the upstream's QueueDisposable.requestFusion with the mode and
146124
* saves the established mode in {@link #sourceMode}.

0 commit comments

Comments
 (0)