File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
rxjava-core/src/main/java/rx Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,6 @@ protected ConnectableObservable(OnSubscribeFunc<T> onSubscribe) {
54
54
* @return a {@link Observable}
55
55
*/
56
56
public Observable <T > refCount () {
57
- return refCount (this );
58
- }
59
-
60
- /**
61
- * Returns an observable sequence that stays connected to the source as long
62
- * as there is at least one subscription to the observable sequence.
63
- * @param that
64
- * a {@link ConnectableObservable}
65
- * @return a {@link Observable}
66
- */
67
- public static <T > Observable <T > refCount (ConnectableObservable <T > that ) {
68
- return Observable .create (OperationRefCount .refCount (that ));
57
+ return Observable .create (OperationRefCount .refCount (this ));
69
58
}
70
59
}
Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ public void call() {
70
70
});
71
71
}
72
72
73
- @ RunWith (JUnit4 .class )
74
73
public static class UnitTest {
75
74
76
75
@ Before
You can’t perform that action at this time.
0 commit comments