Skip to content

Commit 7593247

Browse files
vanniktechakarnokd
authored andcommitted
1.x: Remove some unused fields (#4463)
1 parent d4d55f0 commit 7593247

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

src/main/java/rx/internal/operators/CompletableOnSubscribeConcat.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public void call(CompletableSubscriber s) {
4545
static final class CompletableConcatSubscriber
4646
extends Subscriber<Completable> {
4747
final CompletableSubscriber actual;
48-
final int prefetch;
4948
final SerialSubscription sr;
5049

5150
final SpscArrayQueue<Completable> queue;
@@ -60,7 +59,6 @@ static final class CompletableConcatSubscriber
6059

6160
public CompletableConcatSubscriber(CompletableSubscriber actual, int prefetch) {
6261
this.actual = actual;
63-
this.prefetch = prefetch;
6462
this.queue = new SpscArrayQueue<Completable>(prefetch);
6563
this.sr = new SerialSubscription();
6664
this.inner = new ConcatInnerSubscriber();
@@ -149,4 +147,4 @@ public void onCompleted() {
149147
}
150148
}
151149
}
152-
}
150+
}

src/main/java/rx/internal/operators/CompletableOnSubscribeConcatIterable.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ static final class ConcatInnerSubscriber extends AtomicInteger implements Comple
6161
final CompletableSubscriber actual;
6262
final Iterator<? extends Completable> sources;
6363

64-
int index;
65-
6664
final SerialSubscription sd;
6765

6866
public ConcatInnerSubscriber(CompletableSubscriber actual, Iterator<? extends Completable> sources) {
@@ -132,4 +130,4 @@ void next() {
132130
} while (decrementAndGet() != 0);
133131
}
134132
}
135-
}
133+
}

src/main/java/rx/internal/operators/CompletableOnSubscribeMerge.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ static final class CompletableMergeSubscriber
5050
extends Subscriber<Completable> {
5151
final CompletableSubscriber actual;
5252
final CompositeSubscription set;
53-
final int maxConcurrency;
5453
final boolean delayErrors;
5554

5655
volatile boolean done;
@@ -63,7 +62,6 @@ static final class CompletableMergeSubscriber
6362

6463
public CompletableMergeSubscriber(CompletableSubscriber actual, int maxConcurrency, boolean delayErrors) {
6564
this.actual = actual;
66-
this.maxConcurrency = maxConcurrency;
6765
this.delayErrors = delayErrors;
6866
this.set = new CompositeSubscription();
6967
this.wip = new AtomicInteger(1);
@@ -211,4 +209,4 @@ public static Throwable collectErrors(Queue<Throwable> q) {
211209
}
212210
return new CompositeException(list);
213211
}
214-
}
212+
}

src/main/java/rx/internal/operators/OnSubscribeCombineLatest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ static final class LatestCoordinator<T, R> extends AtomicInteger implements Prod
8989
private static final long serialVersionUID = 8567835998786448817L;
9090
final Subscriber<? super R> actual;
9191
final FuncN<? extends R> combiner;
92-
final int count;
9392
final CombinerSubscriber<T, R>[] subscribers;
9493
final int bufferSize;
9594
final Object[] latest;
@@ -116,7 +115,6 @@ public LatestCoordinator(Subscriber<? super R> actual,
116115
int count, int bufferSize, boolean delayError) {
117116
this.actual = actual;
118117
this.combiner = combiner;
119-
this.count = count;
120118
this.bufferSize = bufferSize;
121119
this.delayError = delayError;
122120
this.latest = new Object[count];

0 commit comments

Comments
 (0)