Skip to content

2.x: Remove some dead code #4581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ public final class InnerQueuedObserver<T>

volatile boolean done;

long produced;

int fusionMode;

public InnerQueuedObserver(InnerQueuedObserverSupport<T> parent, int prefetch) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,6 @@ public static <T, U> Function<T, Publisher<U>> flatMapIntoIterable(final Functio
return new FlatMapIntoIterable<T, U>(mapper);
}

enum MapToInt implements Function<Object, Object> {
INSTANCE;
@Override
public Object apply(Object t) throws Exception {
return 0;
}
}

public static <T> Callable<ConnectableFlowable<T>> replayCallable(final Flowable<T> parent) {
return new Callable<ConnectableFlowable<T>>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ static final class EqualCoordinator<T> extends DeferredScalarSubscription<Boolea

final BiPredicate<? super T, ? super T> comparer;

final int prefetch;

final EqualSubscriber<T> first;

final EqualSubscriber<T> second;
Expand All @@ -69,7 +67,6 @@ static final class EqualCoordinator<T> extends DeferredScalarSubscription<Boolea

EqualCoordinator(Subscriber<? super Boolean> actual, int prefetch, BiPredicate<? super T, ? super T> comparer) {
super(actual);
this.prefetch = prefetch;
this.comparer = comparer;
this.wip = new AtomicInteger();
this.first = new EqualSubscriber<T>(this, prefetch);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
public final class FlowableToList<T, U extends Collection<? super T>> extends AbstractFlowableWithUpstream<T, U> {
final Callable<U> collectionSupplier;

@SuppressWarnings("unchecked")
public FlowableToList(Publisher<T> source) {
this(source, (Callable<U>)ArrayListSupplier.asCallable());
}

public FlowableToList(Publisher<T> source, Callable<U> collectionSupplier) {
super(source);
this.collectionSupplier = collectionSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ public void setFuture(Future<?> f) {
}
}

/**
* Returns true if this ScheduledRunnable has been scheduled.
* @return true if this ScheduledRunnable has been scheduled.
*/
public boolean wasScheduled() {
return get(FUTURE_INDEX) != null;
}

@Override
public void dispose() {
for (;;) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public final class SubscriberResourceWrapper<T> extends AtomicReference<Disposab

final AtomicReference<Subscription> subscription = new AtomicReference<Subscription>();

static final Object TERMINATED = new Object();

public SubscriberResourceWrapper(Subscriber<? super T> actual) {
this.actual = actual;
}
Expand Down