Skip to content

Commit

Permalink
Merge pull request #887 from benjchristensen/filter-cleanup
Browse files Browse the repository at this point in the history
Remove Bad Filter Logic
  • Loading branch information
benjchristensen committed Feb 17, 2014
2 parents cec2bfd + 2f3968d commit b8b28e4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions rxjava-core/src/main/java/rx/operators/OperatorFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,6 @@ public void onNext(T value) {
try {
if (predicate.call(value)) {
child.onNext(value);
} else {
/*
* Special casing of GroupedObservable since GroupedObservable ***MUST*** be subscribed to
* otherwise it will block the GroupBy operator.
*
* See https://github.com/Netflix/RxJava/issues/844
*/
if (value instanceof GroupedObservable) {
System.out.println("value is GroupedObservable");
@SuppressWarnings("rawtypes")
GroupedObservable go = (GroupedObservable) value;
System.out.println("********* unsubscribe from go");
go.take(0).subscribe();
}
}
} catch (Throwable ex) {
child.onError(ex);
Expand Down

0 comments on commit b8b28e4

Please sign in to comment.